Skip to content
Snippets Groups Projects
Select Git revision
  • e4d791fe0d5a70867448c9fd5b2d03b9d69b98a0
  • 11.x default protected
  • 10.5.x protected
  • 10.6.x protected
  • 11.2.x protected
  • 11.1.x protected
  • 10.4.x protected
  • 11.0.x protected
  • 10.3.x protected
  • 7.x protected
  • 10.2.x protected
  • 10.1.x protected
  • 9.5.x protected
  • 10.0.x protected
  • 9.4.x protected
  • 9.3.x protected
  • 9.2.x protected
  • 9.1.x protected
  • 8.9.x protected
  • 9.0.x protected
  • 8.8.x protected
  • 10.5.1 protected
  • 11.2.2 protected
  • 11.2.1 protected
  • 11.2.0 protected
  • 10.5.0 protected
  • 11.2.0-rc2 protected
  • 10.5.0-rc1 protected
  • 11.2.0-rc1 protected
  • 10.4.8 protected
  • 11.1.8 protected
  • 10.5.0-beta1 protected
  • 11.2.0-beta1 protected
  • 11.2.0-alpha1 protected
  • 10.4.7 protected
  • 11.1.7 protected
  • 10.4.6 protected
  • 11.1.6 protected
  • 10.3.14 protected
  • 10.4.5 protected
  • 11.0.13 protected
41 results

index.php

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    ConfigEvents.php 4.75 KiB
    <?php
    
    namespace Drupal\Core\Config;
    
    /**
     * Defines events for the configuration system.
     *
     * @see \Drupal\Core\Config\ConfigCrudEvent
     */
    final class ConfigEvents {
    
      /**
       * Name of the event fired when saving a configuration object.
       *
       * This event allows modules to perform an action whenever a configuration
       * object is saved. 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 saved by
       * hook_update_N().
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigCrudEvent
       * @see \Drupal\Core\Config\Config::save()
       * @see \Drupal\Core\Config\ConfigFactory::onConfigSave()
       * @see hook_update_N()
       *
       * @var string
       */
      const SAVE = 'config.save';
    
      /**
       * 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().
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigCrudEvent
       * @see \Drupal\Core\Config\Config::delete()
       * @see \Drupal\Core\Config\ConfigFactory::onConfigDelete()
       * @see hook_update_N()
       *
       * @var string
       */
      const DELETE = 'config.delete';
    
      /**
       * 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().
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigRenameEvent
       * @see \Drupal\Core\Config\ConfigFactoryInterface::rename()
       * @see hook_update_N()
       *
       * @var string
       */
      const RENAME = 'config.rename';
    
      /**
       * Name of the event fired when validating imported configuration.
       *
       * This event allows modules to perform additional validation operations when
       * configuration is being imported. The event listener method receives a
       * \Drupal\Core\Config\ConfigImporterEvent instance.
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigImporterEvent
       * @see \Drupal\Core\Config\ConfigImporter::validate().
       * @see \Drupal\Core\EventSubscriber\ConfigImportSubscriber::onConfigImporterValidate().
       *
       * @var string
       */
      const IMPORT_VALIDATE = 'config.importer.validate';
    
      /**
       * Name of the event fired when importing configuration to target storage.
       *
       * This event allows modules to perform additional actions when configuration
       * is imported. The event listener method receives a
       * \Drupal\Core\Config\ConfigImporterEvent instance.
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigImporterEvent
       * @see \Drupal\Core\Config\ConfigImporter::import().
       * @see \Drupal\Core\EventSubscriber\ConfigSnapshotSubscriber::onConfigImporterImport().
       *
       * @var string
       */
      const IMPORT = 'config.importer.import';
    
      /**
       * Name of event fired when missing content dependencies are detected.
       *
       * Events subscribers are fired as part of the configuration import batch.
       * Each subscribe should call
       * \Drupal\Core\Config\MissingContentEvent::resolveMissingContent() when they
       * address a missing dependency. To address large amounts of dependencies
       * subscribers can call
       * \Drupal\Core\Config\MissingContentEvent::stopPropagation() which will stop
       * calling other events and guarantee that the configuration import batch will
       * fire the event again to continue processing missing content dependencies.
       *
       * @see \Drupal\Core\Config\ConfigImporter::processMissingContent()
       * @see \Drupal\Core\Config\MissingContentEvent
       */
      const IMPORT_MISSING_CONTENT = 'config.importer.missing_content';
    
      /**
       * Name of event fired to collect information on all config collections.
       *
       * This event allows modules to add to the list of configuration collections
       * retrieved by \Drupal\Core\Config\ConfigManager::getConfigCollectionInfo().
       * The event listener method receives a
       * \Drupal\Core\Config\ConfigCollectionInfo instance.
       *
       * @Event
       *
       * @see \Drupal\Core\Config\ConfigCollectionInfo
       * @see \Drupal\Core\Config\ConfigManager::getConfigCollectionInfo()
       * @see \Drupal\Core\Config\ConfigFactoryOverrideBase
       *
       * @var string
       */
      const COLLECTION_INFO = 'config.collection_info';
    
    }