You are here

class NodeTypeExampleController in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/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

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

Namesort descending Modifiers Type Description 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