class HelpTopicsTestController

Same name and namespace in other branches
  1. 11.x core/modules/help/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php \Drupal\help_topics_test\Controller\HelpTopicsTestController

Returns the response for help_topics_test routes.

Hierarchy

Expanded class hierarchy of HelpTopicsTestController

File

core/modules/help_topics/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php, line 10

Namespace

Drupal\help_topics_test\Controller
View source
class HelpTopicsTestController extends ControllerBase {
  
  /**
   * Displays a dummy page for testing.
   *
   * @param int $int_param
   *   Required parameter (ignored).
   *
   * @return array
   *   Render array for the dummy page.
   */
  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.