class Page
Same name 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 \Drupal\examples\Utility\DescriptionTemplateTrait
Expanded class hierarchy of Page
3 string references to 'Page'
- ExampleFixtureManagementTest::testNodeCreation in modules/
testing_example/ tests/ src/ Kernel/ ExampleFixtureManagementTest.php - Create a node by using createNode() from NodeCreationTrait.
- HooksExampleTest::setUp in modules/
hooks_example/ tests/ src/ Functional/ HooksExampleTest.php - HooksExampleTest::testHooksExample in modules/
hooks_example/ tests/ src/ Functional/ HooksExampleTest.php - Test the output of the example page.
File
-
modules/
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
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 | |
Page::getModuleName | public | function | Name of our module. | Overrides DescriptionTemplateTrait::getModuleName |