ConfigEvents.php 1.56 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?php

/**
 * @file
 * Contains Drupal\Core\Config\Config\ConfigEvents.
 */

namespace Drupal\Core\Config;

/**
 * Defines events for the configuration system.
 */
13
final class ConfigEvents {
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32

  /**
   * Name of event fired when saving the configuration object.
   *
   * @see \Drupal\Core\Config\Config::save()
   * @see \Drupal\Core\Config\ConfigFactory::onConfigSave()
   */
  const SAVE = 'config.save';

  /**
   * Name of event fired when deleting the configuration object.
   *
   * @see \Drupal\Core\Config\Config::delete()
   */
  const DELETE = 'config.delete';

  /**
   * Name of event fired when renaming a configuration object.
   *
33
   * @see \Drupal\Core\Config\ConfigFactoryInterface::rename().
34 35 36 37 38 39 40 41 42
   */
  const RENAME = 'config.rename';

  /**
   * Name of event fired when validating in the configuration import process.
   *
   * @see \Drupal\Core\Config\ConfigImporter::validate().
   * @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate().
   */
43
  const IMPORT_VALIDATE = 'config.importer.validate';
44 45 46 47 48 49 50 51 52

  /**
   * Name of event fired when when importing configuration to target storage.
   *
   * @see \Drupal\Core\Config\ConfigImporter::import().
   * @see \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::onConfigImporterImport().
   */
  const IMPORT = 'config.importer.import';

53
  /**
54
   * Name of event fired to collect information on all collections.
55
   *
56 57
   * @see \Drupal\Core\Config\ConfigManager::getConfigCollectionInfo()
   * @see \Drupal\Core\Config\ConfigCollectionInfo
58
   */
59
  const COLLECTION_INFO = 'config.collection_info';
60

61
}