class Page

Same name in other branches
  1. 3.x modules/form_api_example/src/Controller/Page.php \Drupal\form_api_example\Controller\Page
  2. 4.0.x modules/form_api_example/src/Controller/Page.php \Drupal\form_api_example\Controller\Page

Simple page controller for drupal.

Hierarchy

Expanded class hierarchy of Page

3 string references to 'Page'
ExampleFixtureManagementTest::testNodeCreation in testing_example/tests/src/Kernel/ExampleFixtureManagementTest.php
Create a node by using createNode() from NodeCreationTrait.
HooksExampleTest::setUp in hooks_example/tests/src/Functional/HooksExampleTest.php
HooksExampleTest::testHooksExample in hooks_example/tests/src/Functional/HooksExampleTest.php
Test the output of the example page.

File

form_api_example/src/Controller/Page.php, line 10

Namespace

Drupal\form_api_example\Controller
View 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