field_config_import_steps_alter(&$sync_steps, ConfigImporter $config_importer)
Implements hook_config_import_steps_alter().
function field_config_import_steps_alter(&$sync_steps, ConfigImporter $config_importer) { $field_storages = ConfigImporterFieldPurger::getFieldStoragesToPurge( $config_importer->getStorageComparer()->getSourceStorage()->read('core.extension'), $config_importer->getStorageComparer()->getChangelist('delete') ); if ($field_storages) { // Add a step to the beginning of the configuration synchronization process // to purge field data where the module that provides the field is being // uninstalled. array_unshift($sync_steps, array('\Drupal\field\ConfigImporterFieldPurger', 'process')); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!field!field.module/function/field_config_import_steps_alter/8.1.x