class NodeTypeExampleController
Same name in other branches
- 3.x modules/node_type_example/src/Controller/NodeTypeExampleController.php \Drupal\node_type_example\Controller\NodeTypeExampleController
- 8.x-1.x 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 \Drupal\examples\Utility\DescriptionTemplateTrait
Expanded class hierarchy of NodeTypeExampleController
Related topics
File
-
modules/
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
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
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 | |
NodeTypeExampleController::getModuleName | protected | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName |