You are here

class Page in Examples for Developers 8

Same name and namespace in other branches
  1. 3.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

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

Namesort descending Modifiers Type Description 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