class TourExampleController
Same name in other branches
- 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
- class \Drupal\tour_example\Controller\TourExampleController uses \Drupal\examples\Utility\DescriptionTemplateTrait
Expanded class hierarchy of TourExampleController
Related topics
File
-
modules/
tour_example/ src/ Controller/ TourExampleController.php, line 14
Namespace
Drupal\tour_example\ControllerView source
class TourExampleController {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
protected function getModuleName() {
return 'tour_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 | |
TourExampleController::getModuleName | protected | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName |