Filtering of block while adding not working in Layout Builder Restriction (compatibility fix for LBR)

Created on 19 October 2022, about 2 years ago
Updated 10 October 2023, about 1 year ago

Problem/Motivation

Layout Builder Restrictions introduced breaking changes in #3099121 that result in block not being filtered while adding. A compatibility fix was added in collaboration with Layout Builder Browser. We wish to implement the same fix for Layout Builder Experience to ensure compatibility with LBR.

Steps to reproduce

Update LBR to version commit f2856ff613284771660e61d4a3655da8bb4d7d9e or later.

Proposed resolution

Add 'browse' key to the extra array when getting filter definitions in ExperienceHelper::getFiltereDefinitions() analog to what was done for Layout Builder Browser: https://git.drupalcode.org/project/layout_builder_browser/-/commit/6b079b6.

Remaining tasks

MR / patch to follow shortly.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇨🇭Switzerland tcrawford

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024