You are here

public function PagererExampleController::examplePageTitle in Pagerer 8

Same name and namespace in other branches
  1. 8.2 pagerer_example/src/Controller/PagererExampleController.php \Drupal\pagerer_example\Controller\PagererExampleController::examplePageTitle()

Get pagerer example page title.

Return value

string The page title.

1 string reference to 'PagererExampleController::examplePageTitle'
pagerer_example.routing.yml in pagerer_example/pagerer_example.routing.yml
pagerer_example/pagerer_example.routing.yml

File

pagerer_example/src/Controller/PagererExampleController.php, line 18

Class

PagererExampleController
Controller class for Pagerer example.

Namespace

Drupal\pagerer_example\Controller

Code

public function examplePageTitle() {

  // Set the page title to show current Pagerer version.
  $module_info = system_get_info('module', 'pagerer');
  return $this
    ->t("Pagerer @version - example page", [
    '@version' => $module_info['version'],
  ]);
}