diff --git a/core/lib/Drupal/Core/Config/ConfigEvents.php b/core/lib/Drupal/Core/Config/ConfigEvents.php index be8705f..4eee705 100644 --- a/core/lib/Drupal/Core/Config/ConfigEvents.php +++ b/core/lib/Drupal/Core/Config/ConfigEvents.php @@ -14,72 +14,47 @@ class ConfigEvents { /** - * Saves the configuration object. + * Name of event fired when saving the configuration object. * - * @see \Drupal\Core\Config\Config::save(). - * - * @return \Drupal\Core\Config\Config - * The configuration object. + * @see \Drupal\Core\Config\Config::save() + * @see \Drupal\Core\Config\ConfigFactory::onConfigSave() */ const SAVE = 'config.save'; /** - * Deletes the configuration object - * (@see \Drupal\Core\Config\Config::delete()). + * Name of event fired when deleting the configuration object. * - * @return \Drupal\Core\Config\Config - * The configuration object. + * @see \Drupal\Core\Config\Config::delete() */ const DELETE = 'config.delete'; /** - * Get arbitrary overrides for the named configuration objects from - * modules. + * Name of event fired when collecting overrides for configuration objects. * * @see \Drupal\Core\Config\ConfigFactory::loadModuleOverrides(). - * - * @param array $names - * The names of the configuration objects to get overrides for. - * - * @return array - * An array of overrides keyed by the configuration object name. */ const MODULE_OVERRIDES = 'config.module.overrides'; /** - * Renames a configuration object using the storage controller. + * Name of event fired when renaming a configuration object. * * @see \Drupal\Core\Config\ConfigFactory::rename(). - * - * @param string $old_name - * The old name of the configuration object. - * @param string $new_name - * The new name of the configuration object. - * - * @return \Drupal\Core\Config\Config - * The renamed config object. */ const RENAME = 'config.rename'; /** - * Dispatches validate event for a ConfigImporter object. + * Name of event fired when validating in the configuration import process. * * @see \Drupal\Core\Config\ConfigImporter::validate(). - * - * Events should throw a \Drupal\Core\Config\ConfigImporterException to - * prevent an import from occurring. + * @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate(). */ const VALIDATE = 'config.importer.validate'; /** - * Imports the changelist to the target storage. + * Name of event fired when when importing configuration to target storage. * * @see \Drupal\Core\Config\ConfigImporter::import(). - * - * @throws \Drupal\Core\Config\ConfigException - * - * @return \Drupal\Core\Config\ConfigImporter - * The ConfigImporter instance. + * @see \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::onConfigImporterImport(). */ const IMPORT = 'config.importer.import'; }