You are here

constant ConfigEvents::STORAGE_TRANSFORM_EXPORT in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/ConfigEvents.php \Drupal\Core\Config\ConfigEvents::STORAGE_TRANSFORM_EXPORT

Name of the event fired when the export storage is used.

This event allows subscribers to modify the configuration which is about to be exported. The event listener method receives a \Drupal\Core\Config\StorageTransformEvent instance. This event contains a config storage which subscribers can interact with and which will finally be used to export the configuration from.

$storage = $event
  ->getStorage();

Typically subscribers will want to perform the reverse operation on the storage than for \Drupal\Core\Config\ConfigEvents::STORAGE_TRANSFORM_IMPORT to make sure successive exports and imports yield no difference.

See also

\Drupal\Core\Config\StorageTransformEvent

\Drupal\Core\Config\ConfigEvents::STORAGE_TRANSFORM_IMPORT

\Drupal\Core\Config\ExportStorageManager::getStorage

Related topics

File

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

Class

ConfigEvents
Defines events for the configuration system.

Namespace

Drupal\Core\Config

Code

const STORAGE_TRANSFORM_EXPORT = 'config.transform.export';