Problem/Motivation
Reusable block support in Patternkit does not work as intended, and in most cases, does not result in the ability to reuse a configured block in multiple places with configuration in only one location. Due to this, support for reusable blocks as it currently exists will be removed from Patternkit until it can be re-evaluated and potentially re-implemented.
This will involve a migration process to remove/replace any existing blocks that needs to be explored and implemented for any current users.
Steps to reproduce
Proposed resolution
- Remove "Reusable" checkbox from Patternkit block config forms
- Remove "Reusable" data property/field definition from Patternkit blocks and tables
- Remove service parameter to enable reusable block support from #3511525: Remove the derivatives for loading reusable patterns
- Remove all deprecated code for reusable block support from #3511525: Remove the derivatives for loading reusable patterns
Remaining tasks
User interface changes
API changes
- Route alterations added for optional reusable block support in #3511525: Remove the derivatives for loading reusable patterns removed
- Remove
enable_reusable_blocksservice parameter from #3511525: Remove the derivatives for loading reusable patterns
Data model changes
- "Reusable" property removed from Patternkit Block entity
Issue fork patternkit-3516918
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
sluceroComment #3
sluceroComment #5
sluceroComment #6
johnle commentedI've tested this against Drupal 11.2.8 and nothing seems to be broken. I've only enable the Patternkit example to do some testing on layout builder. I had to get around the whole. I did ran into an issue when I try applying the patch to the latest dev branch. The patch wasn't the issue but the latest dev branch gave me an error
Adding this repository to my composer.json project did however fix that issue above.
Comment #8
sluceroMerged for inclusion in the 9.1.3 release. See #3542304: Patternkit 9.1.3 Release Plan.