Problem/Motivation
At the moment every contrib module that needs to add/alter tree manipulators require to override Drupal\system\Plugin\Block\SystemMenuBlock
(or implement their own).
The only possible solution for contrib now is to override block class via hook_block_alter()
but when more then one module installed only last override wins.
This collisions affects following contrib modules:
- https://www.drupal.org/project/superfish
- https://www.drupal.org/project/menu_multilingual
- https://www.drupal.org/project/menu_block
- https://www.drupal.org/project/domain_entity to incorporate https://github.com/skilld-labs/domain_menu_access
- https://www.drupal.org/project/menu_per_role
- https://www.drupal.org/project/menu_item_visibility
- https://www.drupal.org/project/menu_manipulator
Proposed resolution
Implement a new hook that allows menu tree manipulators to be altered.
Remaining tasks
- Decide on hook name - hook_system_menu_tree_manipulators_alter()
- File change record
- Commit
User interface changes
No
API additions
Adds hook_system_menu_tree_manipulators_alter
to alter manipulators used in menu blocks
Data model changes
No