public function HelpTopicsTestController::testPage in Drupal 10
Same name and namespace in other branches
- 9 core/modules/help_topics/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php \Drupal\help_topics_test\Controller\HelpTopicsTestController::testPage()
Displays a dummy page for testing.
Parameters
int $int_param: Required parameter (ignored).
Return value
array Render array for the dummy page.
1 string reference to 'HelpTopicsTestController::testPage'
- help_topics_test.routing.yml in core/
modules/ help_topics/ tests/ modules/ help_topics_test/ help_topics_test.routing.yml - core/modules/help_topics/tests/modules/help_topics_test/help_topics_test.routing.yml
File
- core/
modules/ help_topics/ tests/ modules/ help_topics_test/ src/ Controller/ HelpTopicsTestController.php, line 21
Class
- HelpTopicsTestController
- Returns the response for help_topics_test routes.
Namespace
Drupal\help_topics_test\ControllerCode
public function testPage(int $int_param) {
$build = [
'#markup' => 'You have reached the help topics test routing page.',
];
return $build;
}