Can someone give me an example of how to write a hook_menu_local_actions_alter() implementation?
I want to modify part of the $local_actions array to add a new path for the node.add_page route but I am not sure how to achieve it.
Can someone give me an example of how to write a hook_menu_local_actions_alter() implementation?
I want to modify part of the $local_actions array to add a new path for the node.add_page route but I am not sure how to achieve it.
Comments
Comment #2
valthebaldComment #3
valthebaldComment #4
valthebaldMoving to new examples meta
Comment #5
avpadernoComment #6
avpadernoWe do not have example implementations for every hook used by Drupal core.
It would be worth adding a module to show how to implement an alter hook, if that module would contain other hook implementations.