Problem/Motivation

See #3351758: Provide a way to opt-out of inline blocks in layout builder based on context. We should avoid overriding controllers, as that potentially would make modules conflict with each other if they have the same need.

Proposed resolution

Convert to the hook and stop overriding controllers.

Remaining tasks

This is postponed on core patch. Attached here just for reference as I wanted to ensure the core functionality allowed everything layout_builder_restrictions needed.

User interface changes

None.

API changes

None,

Data model changes

None.

Comments

penyaskito created an issue. See original summary.

penyaskito’s picture

StatusFileSize
new2.9 KB
penyaskito’s picture

penyaskito’s picture

Status: Active » Postponed
penyaskito’s picture

The attached patch passes the layout_builder_restrictions tests, but not the layout_builder_restrictions_by_region ones. I'm still figuring out why.

penyaskito’s picture

StatusFileSize
new1.45 KB
new2.98 KB

Oops forgot the patch.

mark_fullmer’s picture

Version: 8.x-2.x-dev » 3.x-dev
Status: Postponed » Active