function hook_responsive_menu_off_canvas_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_off_canvas_manipulators_alter()
Alter the manipulators before transforming the off canvas menu.
Parameters
array $manipulators: The manipulators called when transforming the menu tree.
1 invocation of hook_responsive_menu_off_canvas_manipulators_alter()
- OffCanvas::preRender in src/
OffCanvas.php - Pre render callback to assemble the menu as markup.
File
- ./
responsive_menu.api.php, line 67 - Responsive menu module APIs.
Code
function hook_responsive_menu_off_canvas_manipulators_alter(array &$manipulators) {
// Add an another callable manipulator.
$manipulators[] = [
'callable' => 'my_module.custom_tree_manipulators:filterMenus',
];
}