function SampleExampleController::getDescriptionVariables
Same name in other branches
- 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\ControllerCode
protected function getDescriptionVariables() {
$variables = [
'module' => $this->getModuleName(),
'slogan' => $this->t('We aim to please'),
];
return $variables;
}