Add config action for Config::clear()

Created on 10 May 2024, 8 months ago

Problem/Motivation

There are use cases where we may want to unset keys in config entities. For example, when a visibility condition is updated in a block plugin or is removed, we should be able to unset the array key.

Steps to reproduce

Proposed resolution

Expose Config::clear() as a config action.

Sample action:

actions:
    block.block.sample_block:
      simple_config_unset:
          - visibility.request_path

Sample multiple action:

actions:
    block.block.sample_block:
      simple_config_unset:
          - visibility.request_path
          - visibility.entity_bundle.bundles.video

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

10.0

Component

Code

Created by

🇮🇳India bibliophileaxe

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024