constant ConfigEvents::RENAME

Name of the event fired when renaming a configuration object.

This event allows modules to perform an action whenever a configuration object's name is changed. The event listener method receives a \Drupal\Core\Config\ConfigRenameEvent instance.

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

See also

\Drupal\Core\Config\ConfigRenameEvent

\Drupal\Core\Config\ConfigFactoryInterface::rename()

hook_update_N()

Related topics

Events
Overview of event dispatch and subscribing

File

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

Class

ConfigEvents
Defines events for the configuration system.

Namespace

Drupal\Core\Config

Code

const RENAME = 'config.rename';

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Config!ConfigEvents.php/constant/ConfigEvents::RENAME/8.1.x