- πͺπΈSpain penyaskito Seville π, Spain πͺπΈ, UTC+2 πͺπΊ
Created β¨ Provide a way to opt-out of inline blocks in layout builder based on context Needs work in core.
Currently, Layout Builder Restrictions is unable to control the placement of Inline Blocks. That ability is solely controlled by the 'Create and edit custom blocks' permission, which was added in #2914486: Add granular permissions to the Layout Builder β . The UI and configuration are already in place.
It looks like we'll need to override the ChooseBlockController
controller and modify the $build array returned by both ChooseBlockController::build()
and ChooseBlockController::inlineBlockList()
.
The 'Create and edit custom blocks' permission will still be required. We'll want to document that.
None.
None.
None.
Beginning with release 8.x-2.3, restrictions to inline block are now applied. In previous versions, restrictions to inline block were not applied and were controlled by the 'Create and edit custom blocks' permission. This permission is provided by core but does not provide per-bundle granularity. In the current release, this permission is still necessary; however, it is now possible to control which block types are allowed for a given view mode with Layout Builder Restrictions.
Fixed
2.0
Code
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Created β¨ Provide a way to opt-out of inline blocks in layout builder based on context Needs work in core.