class TourExampleController in Examples for Developers 8
Same name and namespace 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 DescriptionTemplateTrait
Expanded class hierarchy of TourExampleController
Related topics
File
- 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DescriptionTemplateTrait:: |
public | function | Generate a render array with our templated content. | |
DescriptionTemplateTrait:: |
protected | function | Get full path to the template. | |
DescriptionTemplateTrait:: |
protected | function | Variables to act as context to the twig template file. | 1 |
TourExampleController:: |
protected | function |
Name of our module. Overrides DescriptionTemplateTrait:: |