This project is not covered by Drupal’s security advisory policy.

Layout Builder Block Limit lets site builders set a maximum number of blocks allowed per region in Layout Builder layouts. When a region reaches its limit, the "Add block" button is hidden, preventing editors from adding more.

Features

  • Set per-region block limits scoped to a specific entity type and bundle (e.g. limit the content region on node/article to 3 blocks)
  • Works with both default layouts and per-entity layout overrides
  • Simple admin UI at Administration > Configuration > Layout Builder Block Limit
  • No interference with the Layout Builder UI beyond hiding the Add block button when the limit is reached

Post-Installation

After enabling the module, go to Administration > Configuration > Content authoring > Layout Builder Block Limit to add limits. Each limit is defined by:

  • Entity type — machine name (e.g. node)
  • Bundle — machine name (e.g. article)
  • Region — Layout Builder region machine name (e.g. content)
  • Maximum blocks — the maximum number of blocks allowed in that region

Limits take effect immediately in the Layout Builder UI. Remove any limit from the same settings page.

Additional Requirements

  • Drupal core Layout Builder module (included in Drupal core ^10.3 || ^11)

Similar projects

Layout Builder Restrictions provides broader control over which block types are allowed in regions. Layout Builder Block Limit focuses specifically on quantity — how many blocks of any type can exist in a region.

Project information

Releases