fix: #3638220 Keep the English Canvas block versions on non-English installs
Fixes https://www.drupal.org/i/3638220
Installing Horizon Aid in a language other than English can stop with an InvalidConfigException on a Canvas block component version. Canvas hashes a block component's version with its translated label, so a component made before the recipe runs has only the translated version, while the recipe pins the English one.
The recipe now keeps the English version of each pinned block component with a translatable label beside the one Canvas made (simpleConfigUpdate on versioned_properties). English installs keep the same active versions. Same fix as The Rightup #3636517 (MR !100). Dropping component_version is not an option: Canvas requires it in config component trees.
Blocks covered: breadcrumb, the events related view block and the blog latest view block (light, placed after the views.view.blog action).
Tested on DDEV with Drupal CMS 2.2.9: Português (Portugal) and English drush installs finish, home and content pages return 200.
AI-Generated: Yes
Checkpoints:
- File an issue
- Addition/Change/Update/Fix
- Testing to ensure no regression
- Automated unit testing coverage
- Automated functional testing coverage
- UX/UI designer responsibilities
- Readability
- Accessibility
- Performance
- Security
- Developer Documentation
- User Guide Documentation
- Reviewed by human
- Code review by maintainers
- Full testing and approval
- Credit contributors
- Review with the product owner
- Release notes snippet
- Release