Drupal is a registered trademark of Dries Buytaert

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.

Drupal core will soon provide a method for controlling available blocks in Layout Builder. See #3365551: Add the notion of a 'configured layout builder block' to solve a number of content-editor and performance pain points. This core solution should be sufficient for most site needs, so consider using that instead of Layout Builder Restrictions. For advanced use cases, Layout Builder Restrictions may still be useful.

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

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....

Activity

Total releases
4
First release
Dec 2024
Latest release
7 months ago
Release cadence
73 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
3.0.4 Stable Jul 17, 2025
3.0.3 Stable Feb 13, 2025
3.0.2 Stable Feb 12, 2025
3.0.1 Stable Dec 10, 2024