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
The migration to Layout Builder does not support static contexts. The Core Context modules provides support for non-required contexts, but static context values are not dealt with at all.
Proposed resolution
Migrate static contexts into the correct destinations:
- Required contexts need to be passed in the block configuration of each component.
- Optional contexts need to be attached to the entity view display, or whatever is carrying the section list.
Remaining tasks
Do it and add tests.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
None.
Comment | File | Size | Author |
---|---|---|---|
#12 | 3091783-12.patch | 21.94 KB | phenaproxima |
#11 | 3091783-11.patch | 17.95 KB | phenaproxima |
#10 | 3091783-10.patch | 14.08 KB | phenaproxima |
#9 | 3091783-9.patch | 9.53 KB | phenaproxima |
#7 | 3091783-7.patch | 9.88 KB | phenaproxima |
Comments
Comment #2
phenaproximaWill it fail? Will it pass? Let's find out.
Comment #3
phenaproximaThis should fail fewer tests.
Comment #4
phenaproximaAnd this should fix the final failure.
Comment #5
phenaproximaNow with basic low-level test coverage. Still needs higher-level functional coverage, though.
Comment #6
phenaproximaRemoving a bit of incorrect detritus.
Comment #7
phenaproximaOkay, apparently now we have a forced dependency on core_context. Joy!
Comment #8
phenaproximaBlocked on #3091831: Add Core Context as a dependency.
Comment #9
phenaproximaOkay, committed that. Let's see if this flies.
Comment #10
phenaproximaAdded high-level functional test coverage for nodes.
Comment #11
phenaproxima...and for users.
Comment #12
phenaproxima...and taxonomy terms.
Comment #14
phenaproxima