class BlockExampleController
Same name in other branches
- 3.x modules/block_example/src/Controller/BlockExampleController.php \Drupal\block_example\Controller\BlockExampleController
- 4.0.x modules/block_example/src/Controller/BlockExampleController.php \Drupal\block_example\Controller\BlockExampleController
Controller routines for block example routes.
Hierarchy
- class \Drupal\block_example\Controller\BlockExampleController uses \Drupal\examples\Utility\DescriptionTemplateTrait
Expanded class hierarchy of BlockExampleController
File
-
block_example/
src/ Controller/ BlockExampleController.php, line 10
Namespace
Drupal\block_example\ControllerView source
class BlockExampleController {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'block_example';
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
BlockExampleController::getModuleName | protected | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName | |
DescriptionTemplateTrait::description | public | function | Generate a render array with our templated content. | ||
DescriptionTemplateTrait::getDescriptionTemplatePath | protected | function | Get full path to the template. | ||
DescriptionTemplateTrait::getDescriptionVariables | protected | function | Variables to act as context to the twig template file. | 1 |