You are here

public function SiteName::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/SiteName.php, line 21

Class

SiteName
Class CurrentPath.

Namespace

Drupal\mgv\Plugin\GlobalVariable

Code

public function getValue() {

  // Site Information Page Global Variables.
  //
  // Print the Site Name. For example, you might want to have a
  // Copyright "My Site Name" message in the footer.
  return \Drupal::config('system.site')
    ->get('name');
}