public function SiteSlogan::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/ SiteSlogan.php, line 21
Class
- SiteSlogan
- Class SiteSlogan.
Namespace
Drupal\mgv\Plugin\GlobalVariableCode
public function getValue() {
// Site Information Page Global Variables.
//
// Print the Site Slogan.
return \Drupal::config('system.site')
->get('slogan');
}