function HelpTopicsTestController::testPage

Same name in other branches
  1. 10 core/modules/help/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php \Drupal\help_topics_test\Controller\HelpTopicsTestController::testPage()
  2. 11.x core/modules/help/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\Controller

Code

public function testPage(int $int_param) {
    $build = [
        '#markup' => 'You have reached the help topics test routing page.',
    ];
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.