function menu_item_extras_help in Menu Item Extras 8
Same name and namespace in other branches
- 8.2 menu_item_extras.module \menu_item_extras_help()
Implements hook_help().
File
- ./
menu_item_extras.module, line 16 - Adds body field to the menu item.
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('Provide an additional custom fields which can be used on Menu link'),
],
];
return render($output);
}
}