public function SiteLogo::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/ SiteLogo.php, line 21
Class
- SiteLogo
- Class SiteLogo.
Namespace
Drupal\mgv\Plugin\GlobalVariableCode
public function getValue() {
// Print the Site logo's URL. - we are only printing the URL so you can add
// custom alt (and other) attributes to the image if you wish.
$theme_name = \Drupal::theme()
->getActiveTheme()
->getName();
return theme_get_setting('logo.url', $theme_name);
}