You are here

class TourExampleController in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/tour_example/src/Controller/TourExampleController.php \Drupal\tour_example\Controller\TourExampleController

Controller routines for tour example routes.

This is where our tour page is defined.

Hierarchy

Expanded class hierarchy of TourExampleController

Related topics

File

tour_example/src/Controller/TourExampleController.php, line 14

Namespace

Drupal\tour_example\Controller
View source
class TourExampleController {
  use DescriptionTemplateTrait;

  /**
   * {@inheritdoc}
   */
  protected function getModuleName() {
    return 'tour_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
TourExampleController::getModuleName protected function Name of our module. Overrides DescriptionTemplateTrait::getModuleName