Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
With the current implementation you can get breadcrumbs on hierarchy by using a pathauto pattern to build the alias from the hierarchy and then use core's path based breadcrumbs, but that breaks if you want to give authors the ability to change aliases.
Proposed resolution
Add submodule with a breadcrumb builder.
Remaining tasks
Tests and code
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff.txt | 6.32 KB | acbramley |
#9 | 2861404-9.patch | 12.48 KB | acbramley |
Comments
Comment #2
acbramley CreditAttribution: acbramley commentedI can work on this next week :)
Comment #3
acbramley CreditAttribution: acbramley commentedComment #4
acbramley CreditAttribution: acbramley at PreviousNext commentedWorking on this today
Comment #5
acbramley CreditAttribution: acbramley at PreviousNext commentedHere's a first cut of it, there's a few assumptions in the builder that I'm not too sure of right now but thought I'd upload to get some feedback.
Comment #6
larowlanLooking good
Not used anymore?
If people don't like the defaults, they can implement their own extending from this one.
Happy to leave it as is.
Lets make these protected in case someone wants to do something about multiple fields that is specific to their use-case - they can then extend
I think this will break phpcs
Comment #7
larowlanComment #8
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedComment #9
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedAddresses all feedback from #6, checked PHPCS and it didn't seem to have an issue with the Route object line.
Comment #10
larowlanComment #12
larowlan