class HelpTopicsTestController
Same name and namespace in other branches
- 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
- class \Drupal\Core\Controller\ControllerBase extends \Drupal\Core\DependencyInjection\ContainerInjectionInterface uses \Drupal\Core\Logger\LoggerChannelTrait, \Drupal\Core\Messenger\MessengerTrait, \Drupal\Core\Routing\RedirectDestinationTrait, \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\help_topics_test\Controller\HelpTopicsTestController implements \Drupal\Core\Controller\ControllerBase
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\ControllerView 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.