class NodeTypeExampleController

Same name in other branches
  1. 3.x modules/node_type_example/src/Controller/NodeTypeExampleController.php \Drupal\node_type_example\Controller\NodeTypeExampleController
  2. 8.x-1.x node_type_example/src/Controller/NodeTypeExampleController.php \Drupal\node_type_example\Controller\NodeTypeExampleController

Controller routines for node_type_example.

Hierarchy

Expanded class hierarchy of NodeTypeExampleController

Related topics

File

modules/node_type_example/src/Controller/NodeTypeExampleController.php, line 12

Namespace

Drupal\node_type_example\Controller
View 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