You are here

protected function SampleExampleController::getDescriptionVariables in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x tests/modules/examples_description_test/src/Controller/SampleExampleController.php \Drupal\examples_description_test\Controller\SampleExampleController::getDescriptionVariables()

We override this so we can see some substitutions.

Overrides DescriptionTemplateTrait::getDescriptionVariables

File

tests/modules/examples_description_test/src/Controller/SampleExampleController.php, line 26

Class

SampleExampleController
Simple controller class used to test the DescriptionTemplateTrait.

Namespace

Drupal\examples_description_test\Controller

Code

protected function getDescriptionVariables() {
  $variables = [
    'module' => $this
      ->getModuleName(),
    'slogan' => $this
      ->t('We aim to please'),
  ];
  return $variables;
}