You are here

function menu_item_extras_help in Menu Item Extras 8.2

Same name and namespace in other branches
  1. 8 menu_item_extras.module \menu_item_extras_help()

Implements hook_help().

File

./menu_item_extras.module, line 22
Manage fields for the menu items.

Code

function menu_item_extras_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the menu_item_extras module.
    case 'help.page.menu_item_extras':
      $output = [
        '#type' => 'container',
        'title' => [
          '#type' => 'html_tag',
          '#tag' => 'h3',
          '#value' => t('About'),
        ],
        'description' => [
          '#type' => 'html_tag',
          '#tag' => 'p',
          '#value' => t('Provides additional custom fields which can be used on Menu Link.'),
        ],
      ];
      return render($output);
  }
}