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

Remaining tasks

User interface changes

API changes

Data model changes

  • "Reusable" property removed from Patternkit Block entity

Issue fork patternkit-3516918

Command icon 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

slucero created an issue. See original summary.

slucero’s picture

slucero’s picture

Issue summary: View changes

slucero’s picture

Status: Active » Needs review
johnle’s picture

Status: Needs review » Reviewed & tested by the community

I'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

Problem 1
    - Root composer.json requires drupal/patternkit dev-9.1.x -> satisfiable by drupal/patternkit[dev-9.1.x].
    - drupal/patternkit dev-9.1.x requires npm-asset/json-editor--json-editor ^2.15.2 -> could not be found in any version, there may be a typo in the package name.

Adding this repository to my composer.json project did however fix that issue above.

{
            "type": "composer",
            "url": "https://asset-packagist.org"
        },

  • slucero committed dff037f4 on 9.1.x
    feat: #3516918 Remove Reusable Block Support
    
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged for inclusion in the 9.1.3 release. See #3542304: Patternkit 9.1.3 Release Plan.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.