Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Layout Builder Restrictions

33,098 sites Security covered Drupal 10–11
View on drupal.org

This module grants administrative control over available blocks and layouts within Drupal's Layout Builder. It allows sites to define which blocks and layouts can be used by default, offering flexibility for usability and access control.

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 #2916876: Add visibility control conditions to blocks within Layout Builder. 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://project.pages.drupalcode.org/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....

Depends on

Dependencies of the latest stable release

  • layout_builder Drupal core

Required by

4 tracked projects depend on this one

Activity

Tracked releases
6
Tracked since
Dec 2024
Latest release
2 weeks ago
Releases (12 mo)
2 ▼ from 4
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
3.0.6 Stable 10–11 Aug 17, 2026
3.0.5 Stable 10–11 Jul 23, 2026
3.0.4 Stable 10–11 Jul 17, 2025
3.0.3 Stable 10–11 Feb 13, 2025
3.0.2 Stable 10–11 Feb 12, 2025
3.0.1 Stable 10–11 Dec 10, 2024