class NodeTypeExampleController in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/node_type_example/src/Controller/NodeTypeExampleController.php \Drupal\node_type_example\Controller\NodeTypeExampleController
Controller routines for node_type_example.
Hierarchy
- class \Drupal\node_type_example\Controller\NodeTypeExampleController uses DescriptionTemplateTrait
Expanded class hierarchy of NodeTypeExampleController
Related topics
File
- node_type_example/
src/ Controller/ NodeTypeExampleController.php, line 12
Namespace
Drupal\node_type_example\ControllerView source
class NodeTypeExampleController {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'node_type_example';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
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 |
NodeTypeExampleController:: |
protected | function |
Name of our module. Overrides DescriptionTemplateTrait:: |