function FieldConfigStorage::importDelete

Same name in other branches
  1. 8.9.x core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()
  2. 10 core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()
  3. 11.x core/modules/field/src/FieldConfigStorage.php \Drupal\field\FieldConfigStorage::importDelete()

Overrides ConfigEntityStorage::importDelete

File

core/modules/field/src/FieldConfigStorage.php, line 89

Class

FieldConfigStorage
Storage handler for field config.

Namespace

Drupal\field

Code

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.