public function SiteMail::getValue in More Global Variables 8
Method that implement generating value of global variable.
Return value
mixed Return value of declared variable.
Overrides GlobalVariableInterface::getValue
File
- src/
Plugin/ GlobalVariable/ SiteMail.php, line 21
Class
- SiteMail
- Class SiteMail.
Namespace
Drupal\mgv\Plugin\GlobalVariableCode
public function getValue() {
// Site Information Page Global Variables.
//
// Print the Site Email.
return \Drupal::config('system.site')
->get('mail');
}