You are here

more_help_page_test.module in Drupal 8

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;
}