function DescriptionTemplateTrait::getModuleName

Same name in other branches
  1. 8.x-1.x src/Utility/DescriptionTemplateTrait.php \Drupal\examples\Utility\DescriptionTemplateTrait::getModuleName()
  2. 4.0.x src/Utility/DescriptionTemplateTrait.php \Drupal\examples\Utility\DescriptionTemplateTrait::getModuleName()

Name of our module.

Return value

string A module name.

2 calls to DescriptionTemplateTrait::getModuleName()
DescriptionTemplateTrait::getDescriptionTemplatePath in src/Utility/DescriptionTemplateTrait.php
Get full path to the template.
DescriptionTemplateTrait::getDescriptionVariables in src/Utility/DescriptionTemplateTrait.php
Variables to act as context to the twig template file.
17 methods override DescriptionTemplateTrait::getModuleName()
AjaxExampleController::getModuleName in modules/ajax_example/src/Controller/AjaxExampleController.php
Name of our module.
BlockExampleController::getModuleName in modules/block_example/src/Controller/BlockExampleController.php
Name of our module.
FieldExampleController::getModuleName in modules/field_example/src/Controller/FieldExampleController.php
Name of our module.
HooksExampleController::getModuleName in modules/hooks_example/src/Controller/HooksExampleController.php
Name of our module.
JsExampleController::getModuleName in modules/js_example/src/Controller/JsExampleController.php
Name of our module.

... See full list

File

src/Utility/DescriptionTemplateTrait.php, line 53

Class

DescriptionTemplateTrait
Trait to implement a "drop-in" template for Example's controllers.

Namespace

Drupal\examples\Utility

Code

protected abstract function getModuleName();