function SampleExampleController::getDescriptionVariables

Same name in other branches
  1. 8.x-1.x tests/modules/examples_description_test/src/Controller/SampleExampleController.php \Drupal\examples_description_test\Controller\SampleExampleController::getDescriptionVariables()
  2. 4.0.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;
}