Postponed
Project:
Drupal Canvas
Version:
1.x-dev
Component:
Config management
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Oct 2024 at 14:10 UTC
Updated:
27 May 2025 at 09:07 UTC
Jump to comment: Most recent
Comments
Comment #3
wim leersComment #4
catchDeleted regions with block content configured is tricky. However a good first step here would be being able to 'clean up' a page template config entity where regions were previously FALSE (nothing configured for them) but now don't exist. I can see this happening when people are XB-ifying their own sites and trying to clean up/simplify their theme as a result.
Comment #5
wim leers#3478537: Introduce an XB `PageTemplate` config entity is in!
(Also, thanks, @catch, and sorry for not crediting you in the first place 🙈)
Comment #6
catchSo one option - when saving an entity, automatically remove FALSE regions that don't exist any more in the theme info?
Comment #7
wim leersYes, we could do that.
But I think @lauriii is stating that there should be no interaction required from any user at all; only the act of updating a theme (to have added or deleted regions) should automatically update the affected
PageTemplateconfig entity, if any.P.S.:
NULLregions BTW, notFALSE, because:Comment #8
catchAh OK makes sense with NULL, so NULL to non-existent then :P
Comment #9
wim leersYep! :D I felt weird even pointing that out, because it felt like absurd nitpickery — but it actually meant something different so I decided to post it anyway 😅
Comment #10
wim leers