Provide configactions for recipes

Created on 9 July 2025, 17 days ago

We are developing recipes where each recipe contains a layout builder block.
Certain of these blocks we need to append to our allow/restrict list without overriding the existing list.

Let's provide ConfigActions to support appending blocks for both entity_viewmode_restriction and entity_viewmode_restriction_by_region

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium StryKaizer Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @StryKaizer
  • 🇧🇪Belgium StryKaizer Belgium

    MR pushed

    Documentation on how to use these configactions in recipes:

    
    config:
      actions:
        core.entity_view_display.node.*.full:
    
          # Basic example on how to restrict blocks.
          entityViewModeRestrictionAppendRestrictedBlocks:
            blocks:
              'Inline blocks':
                - 'inline_block:text'
    
          # Basic example on how to allow blocks.
          entityViewModeRestrictionAppendAllowedBlocks:
            blocks:
              'Inline blocks':
                - 'inline_block:image'
    
          # Example on how to allow by region.
          entityViewModeRestrictionByRegionAppendAllowedBlocks:
            - layouts:
                - one_column
                - two_column
              regions:
                - footer
                - header
              blocks:
                'Inline blocks':
                  - 'inline_block:text'
    
          # Example on how to restrict by region.
          entityViewModeRestrictionByRegionAppendRestrictedBlocks:
            - layouts:
                - three_column
              regions:
                - footer
                - header
              blocks:
                'Inline blocks':
                  - 'inline_block:text'
    
  • Pipeline finished with Success
    17 days ago
    Total: 544s
    #542902
Production build 0.71.5 2024