You are here

protected function SampleExampleController::getModuleName 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::getModuleName()

Name of our module.

Return value

string A module name.

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';
}