HelpTopicsTestController.php

Same filename in other branches
  1. 9 core/modules/help_topics/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php
  2. 10 core/modules/help/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php

Namespace

Drupal\help_topics_test\Controller

File

core/modules/help/tests/modules/help_topics_test/src/Controller/HelpTopicsTestController.php

View source
<?php

declare (strict_types=1);
namespace Drupal\help_topics_test\Controller;

use Drupal\Core\Controller\ControllerBase;

/**
 * Returns the response for help_topics_test routes.
 */
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;
    }

}

Classes

Title Deprecated Summary
HelpTopicsTestController Returns the response for help_topics_test routes.

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