ConfigEvents::STORAGE_TRANSFORM_EXPORT
Same name in other branches
- 9 core/lib/Drupal/Core/Config/ConfigEvents.php \Drupal\Core\Config\ConfigEvents::STORAGE_TRANSFORM_EXPORT
- 10 core/lib/Drupal/Core/Config/ConfigEvents.php \Drupal\Core\Config\ConfigEvents::STORAGE_TRANSFORM_EXPORT
- 11.x 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\ConfigCode
const STORAGE_TRANSFORM_EXPORT = 'config.transform.export';
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.