Module Description
Summary
This module provides a configurable UI for restricting blocks and layouts. Sites can allow all options from a certain provider, or restrict all options by provider, or specify individual allowed blocks & layouts.
Documentation
https://www.drupal.org/docs/contributed-modules/layout-builder-restrictions
Background/motivation
The default Layout Builder interface allows all blocks and layouts registered in the system. This is both a usability problem (as the list of blocks quickly becomes very large), and and access problem: some sites may not want all blocks & layouts to be available in all contexts.
Companion Modules
* Block List Override: If you want to globally suppress certain blocks from the UI on all entities implementing Layout Builder, consider using this module.
* Layout Builder Lock: limit editing actions on certain regions while allowing actions on others
* Layout Builder Restrictions by Role: control which roles can place what blocks, in all layouts.
Programmatic equivalents
To restrict blocks/layouts on all, or a group of entities, you can add your own implementation of hook_plugin_filter_TYPE__CONSUMER_alter() (which is invoked for both themes and modules). Examples are located at https://www.drupal.org/docs/contributed-modules/layout-builder-restricti....
This module provides a configurable UI for restricting blocks and layouts. Sites can allow all options from a certain provider, or restrict all options by provider, or specify individual allowed blocks & layouts.
Documentation
https://www.drupal.org/docs/contributed-modules/layout-builder-restrictions
Background/motivation
The default Layout Builder interface allows all blocks and layouts registered in the system. This is both a usability problem (as the list of blocks quickly becomes very large), and and access problem: some sites may not want all blocks & layouts to be available in all contexts.
Companion Modules
* Block List Override: If you want to globally suppress certain blocks from the UI on all entities implementing Layout Builder, consider using this module.
* Layout Builder Lock: limit editing actions on certain regions while allowing actions on others
* Layout Builder Restrictions by Role: control which roles can place what blocks, in all layouts.
Programmatic equivalents
To restrict blocks/layouts on all, or a group of entities, you can add your own implementation of hook_plugin_filter_TYPE__CONSUMER_alter() (which is invoked for both themes and modules). Examples are located at https://www.drupal.org/docs/contributed-modules/layout-builder-restricti....
Module Link
Project Usage
28763
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
This module aims to solve the issue of allowing or restricting specific blocks and layouts within the Layout Builder interface, providing a configurable UI for site administrators to control the available options.
Data Name
layout_builder_restrictions