TestPageTestController.php in Zircon Profile 8.0
Same filename and directory in other branches
Namespace
Drupal\test_page_test\ControllerFile
core/modules/system/tests/modules/test_page_test/src/Controller/TestPageTestController.phpView source
<?php
/**
* @file
* Contains \Drupal\test_page_test\Controller\TestPageTestController.
*/
namespace Drupal\test_page_test\Controller;
/**
* Controller routines for test_page_test routes.
*/
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();.,\\\\/-_{}',
],
],
];
}
}
Classes
Name | Description |
---|---|
TestPageTestController | Controller routines for test_page_test routes. |