function SampleExampleController::getModuleName

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::getModuleName()
  2. 4.0.x tests/modules/examples_description_test/src/Controller/SampleExampleController.php \Drupal\examples_description_test\Controller\SampleExampleController::getModuleName()

Overrides DescriptionTemplateTrait::getModuleName

1 call to SampleExampleController::getModuleName()
SampleExampleController::getDescriptionVariables in tests/modules/examples_description_test/src/Controller/SampleExampleController.php
We override this so we can see some substitutions.

File

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

Class

SampleExampleController
Simple controller class used to test the DescriptionTemplateTrait.

Namespace

Drupal\examples_description_test\Controller

Code

protected function getModuleName() {
    return 'examples_description_test';
}