function ConfigActionPluginInterface::apply

Applies the config action.

Parameters

string $configName: The name of the config to apply the action to.

mixed $value: The value for the action to use.

Throws

ConfigActionException

8 methods override ConfigActionPluginInterface::apply()
AddItemToToolbar::apply in core/modules/ckeditor5/src/Plugin/ConfigAction/AddItemToToolbar.php
Applies the config action.
AddModeration::apply in core/modules/content_moderation/src/Plugin/ConfigAction/AddModeration.php
Applies the config action.
AddToAllBundles::apply in core/modules/field/src/Plugin/ConfigAction/AddToAllBundles.php
Applies the config action.
DuplicateConfigAction::apply in core/modules/config/tests/config_action_duplicate_test/src/Plugin/ConfigAction/DuplicateConfigAction.php
Applies the config action.
EntityCreate::apply in core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityCreate.php
Applies the config action.

... See full list

File

core/lib/Drupal/Core/Config/Action/ConfigActionPluginInterface.php, line 23

Class

ConfigActionPluginInterface
@internal This API is experimental.

Namespace

Drupal\Core\Config\Action

Code

public function apply(string $configName, mixed $value) : void;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.