Problem

It's unclear from documentation on how to use simpleConfigUpdate on config entities, or what to use.

Citing #3439713: Deprecate using the simpleConfigUpdate action on config entities, and introduce a new setProperties action to replace the invalid use cases:

\Drupal\Core\Config\Action\Plugin\ConfigAction\SimpleConfigUpdate::apply() can change config entities. It shouldn't be used for that, though, because it totally bypasses the entity API and the many important hooks in it.

Proposed resolution

Properly document the change.

Issue: https://www.drupal.org/project/drupal/issues/3439713
Change record: https://www.drupal.org/node/3515543

This has been merged is available since 11.2.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

thejimbirch created an issue. See original summary.

thejimbirch’s picture

Title: [PP-1] Document the deprecation of simpleConfigUpdate on config entities, and new setProperties config action » Document the deprecation of simpleConfigUpdate on config entities, and new setProperties config action
Issue summary: View changes
Status: Postponed » Active

fago made their first commit to this issue’s fork.

fago’s picture

Status: Active » Needs review
fago’s picture

Issue summary: View changes
fago’s picture

update summary and MR with suggestion.

thejimbirch’s picture

Issue tags: +Chicago2026