function HelpPageTestController::testArray

Same name in other branches
  1. 9 core/modules/help/tests/modules/help_page_test/src/HelpPageTestController.php \Drupal\help_page_test\HelpPageTestController::testArray()
  2. 10 core/modules/help/tests/modules/help_page_test/src/HelpPageTestController.php \Drupal\help_page_test\HelpPageTestController::testArray()
  3. 11.x core/modules/help/tests/modules/help_page_test/src/HelpPageTestController.php \Drupal\help_page_test\HelpPageTestController::testArray()

Provides a route which has multiple array returns from hook_help().

Return value

array A render array.

1 string reference to 'HelpPageTestController::testArray'
help_page_test.routing.yml in core/modules/help/tests/modules/help_page_test/help_page_test.routing.yml
core/modules/help/tests/modules/help_page_test/help_page_test.routing.yml

File

core/modules/help/tests/modules/help_page_test/src/HelpPageTestController.php, line 36

Class

HelpPageTestController
Provides controllers for testing the help block.

Namespace

Drupal\help_page_test

Code

public function testArray() {
    return [
        '#markup' => 'A route which has multiple array returns from hook_help().',
    ];
}

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