Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ConfigEvents.php

ConfigEvents::DELETE

Name of the event fired when deleting a configuration object.

This event allows modules to perform an action whenever a configuration object is deleted. 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 deleted by hook_update_N().

See also

\Drupal\Core\Config\ConfigCrudEvent

\Drupal\Core\Config\Config::delete()

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

hook_update_N()

Related topics

Events
Overview of event dispatch and subscribing

File

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

Class

ConfigEvents
Defines events for the configuration system.

Namespace

Drupal\Core\Config

Code

const DELETE = 'config.delete';
RSS feed
Powered by Drupal