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.

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Status: Active » Needs review
Issue tags: +Needs tests
StatusFileSize
new6.3 KB

Will it fail? Will it pass? Let's find out.

phenaproxima’s picture

StatusFileSize
new6.31 KB

This should fail fewer tests.

phenaproxima’s picture

StatusFileSize
new7.04 KB

And this should fix the final failure.

phenaproxima’s picture

StatusFileSize
new9.81 KB

Now with basic low-level test coverage. Still needs higher-level functional coverage, though.

phenaproxima’s picture

StatusFileSize
new9.53 KB

Removing a bit of incorrect detritus.

phenaproxima’s picture

StatusFileSize
new9.88 KB

Okay, apparently now we have a forced dependency on core_context. Joy!

phenaproxima’s picture

Status: Needs review » Postponed
phenaproxima’s picture

Status: Postponed » Needs review
StatusFileSize
new9.53 KB

Okay, committed that. Let's see if this flies.

phenaproxima’s picture

StatusFileSize
new14.08 KB

Added high-level functional test coverage for nodes.

phenaproxima’s picture

StatusFileSize
new17.95 KB

...and for users.

phenaproxima’s picture

Issue tags: -Needs tests
StatusFileSize
new21.94 KB

...and taxonomy terms.

  • phenaproxima committed 49efe77 on 8.x-5.x
    Issue #3091783 by phenaproxima: Support migrating static contexts
    
phenaproxima’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.