StagedLanguageConfigOverride rejects Pattern config entities on multilingual sites
### Summary On multilingual Canvas sites, viewing the component library's Patterns tab causes a 500 error: ``` OutOfRangeException: Even though the staged_language_config_override entity type is designed to support config translations for any config, for now it is restricted to Canvas ContentTemplates and PageRegions. ``` This happens because `StagedLanguageConfigOverride::__construct()` only allows config names starting with `canvas.content_template` or `canvas.page_region`, but Pattern config entities have names starting with `canvas.pattern`. ### Steps to reproduce 1. Install Canvas 1.7.0 with at least 2 languages enabled 2. Create a Pattern (or have one from a recipe/module) 3. Open the Canvas editor → Library → Patterns tab 4. Observe 500 error in the server log ### Proposed fix Add `Pattern::ENTITY_TYPE_ID` to the allowed list in `StagedLanguageConfigOverride::__construct()`: ```php if (!\str_starts_with($this->config_name, "canvas." . ContentTemplate::ENTITY_TYPE_ID) && !\str_starts_with($this->config_name, "canvas." . PageRegion::ENTITY_TYPE_ID) && !\str_starts_with($this->config_name, "canvas." . Pattern::ENTITY_TYPE_ID)) { ``` Alternatively, consider removing this restriction entirely since the entity type's stated purpose is "designed to support config translations for any config." ### Impact - One-line fix, zero data migration - Only affects multilingual sites with Patterns - Without this fix, the Patterns tab is completely unusable on multilingual Canvas sites
issue