class BlockExampleController in Examples for Developers 8
Same name and namespace in other branches
- 3.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 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockExampleController:: |
protected | function |
Name of our module. Overrides DescriptionTemplateTrait:: |
|
DescriptionTemplateTrait:: |
public | function | Generate a render array with our templated content. | |
DescriptionTemplateTrait:: |
protected | function | Get full path to the template. | |
DescriptionTemplateTrait:: |
protected | function | Variables to act as context to the twig template file. | 1 |