1. 8.5.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  2. 8.0.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  3. 8.1.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  4. 8.2.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  5. 8.3.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  6. 8.4.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE
  7. 8.6.x core/lib/Drupal/Core/Config/ConfigEvents.php ConfigEvents::SAVE

Name of the event fired when saving a configuration object.

This event allows modules to perform an action whenever a configuration object is saved. The event listener method receives a \Drupal\Core\Config\ConfigCrudEvent instance.

See hook_update_N() documentation for safe configuration API usage and restrictions as this event will be fired when configuration is saved by hook_update_N().

See also

\Drupal\Core\Config\ConfigCrudEvent

\Drupal\Core\Config\Config::save()

\Drupal\Core\Config\ConfigFactory::onConfigSave()

hook_update_N()

Related topics

File

core/lib/Drupal/Core/Config/ConfigEvents.php, line 32

Class

ConfigEvents
Defines events for the configuration system.

Namespace

Drupal\Core\Config

Code

const SAVE = 'config.save';