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

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

namespace Drupal\Core\Config;

/**
 * Defines events for the configuration system.
12 13
 *
 * @see \Drupal\Core\Config\ConfigCrudEvent
14
 */
15
final class ConfigEvents {
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

  /**
   * 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.
   *
35
   * @see \Drupal\Core\Config\ConfigFactoryInterface::rename().
36 37 38 39 40 41 42 43 44
   */
  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().
   */
45
  const IMPORT_VALIDATE = 'config.importer.validate';
46 47 48 49 50 51 52 53 54

  /**
   * 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';

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

63
}