Problem/Motivation
The module only supports checking links in the "main" menu. This means it doesn't match menu links against
Steps to reproduce
Add a second menu structure.
Add nodes to that menu so that there is a menu tree with node1/node2/node3.
View node3.
Expected results:
* The breadcrumbs uses the labels from the menus.
What actually happens:
* The menu tree is ignored.
Proposed resolution
Add a settings form complete with menu link that goes under Admin → Configuration → User interface.
Include a default configuration in config/install and a schema file in config/schema.
Copy the menu selection logic from the Menu Breadcrumb module.
Extend the logic in BreadcrumbBuilder::build() to check each of the menus configured.
Remaining tasks
Provide a patch / MR.
User interface changes
A settings page would be provided for controlling which of the menus would be allowed, along with their order.
API changes
TBD
Data model changes
TBD
Issue fork breadcrumb_menu-3327634
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
damienmckennaThe module Menu Breadcrumb has a settings page and logic for this, it could be borrowed.
Comment #3
damienmckennaComment #12
casey commented