Add ancestor helper and condition. #865
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
GitHub Issue: Islandora/documentation#2071
https://islandora.slack.com/archives/CM5PPAV28/p1648651493309979
What does this Pull Request do?
Adds a new condition to allow for multiple ancestors to be looked for use in context condition.
Re-works the breadcrumb builder to use the new helper to DRY things up.
What's new?
New condition.
How should this be tested?
Regression test the breadcrumb builder.
Use the condition in whatever context you want and see that it applies correctly.
Interested parties
@seth-shaw-unlv