function DescriptionTemplateTrait::getModuleName
Same name in other branches
- 3.x src/Utility/DescriptionTemplateTrait.php \Drupal\examples\Utility\DescriptionTemplateTrait::getModuleName()
- 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.
16 methods override DescriptionTemplateTrait::getModuleName()
- AjaxExampleController::getModuleName in ajax_example/
src/ Controller/ AjaxExampleController.php - Name of our module.
- BlockExampleController::getModuleName in block_example/
src/ Controller/ BlockExampleController.php - Name of our module.
- FieldExampleController::getModuleName in field_example/
src/ Controller/ FieldExampleController.php - Name of our module.
- HooksExampleController::getModuleName in hooks_example/
src/ Controller/ HooksExampleController.php - Name of our module.
- JsExampleController::getModuleName in js_example/
src/ Controller/ JsExampleController.php - Name of our module.
File
-
src/
Utility/ DescriptionTemplateTrait.php, line 53
Class
- DescriptionTemplateTrait
- Trait to implement a "drop-in" template for Example's controllers.
Namespace
Drupal\examples\UtilityCode
protected abstract function getModuleName();