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 Context Integration

110 sites Security covered Drupal 9–11
View on drupal.org

This module allows you to control the visibility of Layout Builder sections and blocks using the Context module, enabling more dynamic content personalization, A/B testing, or access control scenarios. It lets you define conditions that determine when layouts or specific components are shown or hidden based on various user or session data.

Layout Builder Context adds the capability for layout sections and block components for Layout Builder to leverage the Context module to assign visibility to either an entire layout or individual components within them.

This makes it possible to hide all or parts of areas with Layout Builder with any Contexts you come up with. This is intended to drive visibility only. Contexts with Reactions won't have any effect within Layout Builder (at least, not with this module). You could theoretically implement your own Reaction plugins to affect layouts or the blocks within them (see the context.module file for ideas).

Context allows for grouping of several conditions for greater composition of rules than normal block visibility and makes them re-usable. This is useful when you need more dynamic control over what appears on a per user basis. Since condition plugins and context definitions can be created that can inspect user field values or session cookies, this can let you add layouts or block components to a single node that show in one case for some users, and hide them for others. This helps when implementing content personalization, A/B testing, access controlled data, or other advanced scenarios with Layout Builder.

For some ideas of what kinds of Contexts/conditions to create, see the Views Minimum module.

Depends on

Dependencies of the latest stable release

  • Context
  • layout_builder Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2026
Latest release
7 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.2 Stable 9–11 Jan 15, 2026