Active
Project:
Layout Section Classes
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2021 at 01:16 UTC
Updated:
5 Nov 2021 at 01:16 UTC
Jump to comment: Most recent
Comments
Comment #2
kmontyOne 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.