function FieldConfigStorage::importDelete
Same name in other branches
- 9 core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()
- 10 core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()
- 11.x core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()
Overrides ConfigEntityStorage::importDelete
File
-
core/
modules/ field/ src/ FieldConfigStorage.php, line 96
Class
- FieldConfigStorage
- Storage handler for field config.
Namespace
Drupal\fieldCode
public function importDelete($name, Config $new_config, Config $old_config) {
// If the field storage has been deleted in the same import, the field will
// be deleted by then, and there is nothing left to do. Just return TRUE so
// that the file does not get written to active store.
if (!$old_config->get()) {
return TRUE;
}
return parent::importDelete($name, $new_config, $old_config);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.