function hook_responsive_menu_horizontal_manipulators_alter in Responsive and off-canvas menu 4.4.x
Same name and namespace in other branches
- 4.3.x responsive_menu.api.php \hook_responsive_menu_horizontal_manipulators_alter()
Alter the manipulators before transforming the horizontal menu.
Parameters
array $manipulators: The manipulators called when transforming the menu tree.
1 invocation of hook_responsive_menu_horizontal_manipulators_alter()
- HorizontalMenu::build in src/
Plugin/ Block/ HorizontalMenu.php - Builds and returns the renderable array for this block plugin.
File
- ./
responsive_menu.api.php, line 78 - Responsive menu module APIs.
Code
function hook_responsive_menu_horizontal_manipulators_alter(array &$manipulators) {
// Add an another callable manipulator.
$manipulators[] = [
'callable' => 'my_module.custom_tree_manipulators:filterMenus',
];
}