Problem/Motivation

Sometimes a style also implies removing classes from blocks inside a region as well

Steps to reproduce

Proposed resolution

Add support for removing classes from blocks inside regions as well

Remaining tasks

User interface changes

API changes

Data model changes

Comments

larowlan created an issue.

kmonty’s picture

One bonus of this is, if I'm understanding the feature request, is that it would resolve the issue of pages throwing PHP Notices when classes are removed from layouts.yml.

For example, we removed a deprecated class from a project recently. The result was older pages that don't get edited a lot were throwing a lot of PHP notices like Warning: Undefined array key "deprecated_example_class" in /app/docroot/modules/contrib/layout_section_classes/src/ClassyLayout.php on line 23.

We could obviously patch the module the suppress the notice. But the ideal solution would be remove the data from the entity entirely.