FieldConfigStorage::importDelete

public FieldConfigStorage::importDelete($name, Config $new_config, Config $old_config)

Delete entities upon synchronizing configuration changes.

Parameters

string $name: The name of the configuration object.

\Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data.

\Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data.

Overrides ConfigEntityStorage::importDelete

File

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

Class

FieldConfigStorage
Controller class for fields.

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);
}
doc_Drupal
2016-10-29 09:11:19
Comments
Leave a Comment

Please login to continue.