You are here

class TestPageTestController in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/test_page_test/src/Controller/TestPageTestController.php \Drupal\test_page_test\Controller\TestPageTestController

Controller routines for test_page_test routes.

Hierarchy

Expanded class hierarchy of TestPageTestController

File

core/modules/system/tests/modules/test_page_test/src/Controller/TestPageTestController.php, line 13
Contains \Drupal\test_page_test\Controller\TestPageTestController.

Namespace

Drupal\test_page_test\Controller
View source
class TestPageTestController {

  /**
   * Returns a test page and sets the title.
   */
  public function testPage() {
    return [
      '#title' => t('Test page'),
      '#markup' => t('Test page text.'),
      '#attached' => [
        'drupalSettings' => [
          'test-setting' => 'azAZ09();.,\\\\/-_{}',
        ],
      ],
    ];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
TestPageTestController::testPage public function Returns a test page and sets the title.