more_help_page_test.module

Same filename in other branches
  1. 9 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module
  2. 10 core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module
  3. 11.x core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module

More Help Page Test module to test the help blocks.

File

core/modules/help/tests/modules/more_help_page_test/more_help_page_test.module

View source
<?php


/**
 * @file
 * More Help Page Test module to test the help blocks.
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function more_help_page_test_help($route_name, RouteMatchInterface $route_match) {
    switch ($route_name) {
        // Return help for the same route as the help_page_test module.
        case 'help_page_test.test_array':
            return [
                '#markup' => 'Help text from more_help_page_test_help module.',
            ];
    }
}

/**
 * Implements hook_help_section_info_alter().
 */
function more_help_page_test_help_section_info_alter(array &$info) {
    $info['hook_help']['weight'] = 500;
}

Functions

Title Deprecated Summary
more_help_page_test_help Implements hook_help().
more_help_page_test_help_section_info_alter Implements hook_help_section_info_alter().

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