class Page in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/form_api_example/src/Controller/Page.php \Drupal\form_api_example\Controller\Page
Simple page controller for drupal.
Hierarchy
- class \Drupal\form_api_example\Controller\Page uses DescriptionTemplateTrait
Expanded class hierarchy of Page
File
- form_api_example/
src/ Controller/ Page.php, line 10
Namespace
Drupal\form_api_example\ControllerView source
class Page {
use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
public function getModuleName() {
return 'form_api_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 |
Page:: |
public | function |
Name of our module. Overrides DescriptionTemplateTrait:: |