Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291508

Add a config action to alter block settings

$
0
0

Problem/Motivation

Currently there isn't a proper way to alter a block's settings in a recipe. A current work around is to use simpleConfigUpdate, but that shouldn't work as blocks provide config entities, not simple config, and may not work forever if #3439713: Should \Drupal\Core\Config\Action\Plugin\ConfigAction\SimpleConfigUpdate::apply() error if it processes a config entity lands.

config:
  actions:
    block.block.gin_primary_local_tasks:
      setRegion: header
      setWeight: -5
      # Blocks should have setSetting(s) config action.
      # We shouldn't use simpleConfigUpdate here as this is not simple config.
      simpleConfigUpdate:
        settings.secondary: true

Steps to reproduce

Proposed resolution

Remaining tasks

Create a config action to alter block settings

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 291508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>