function ConfigEntityStorage::importDelete
Same name in other branches
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete()
- 8.9.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete()
- 11.x core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete()
Overrides ImportableEntityStorageInterface::importDelete
2 calls to ConfigEntityStorage::importDelete()
- ConfigTestStorage::importDelete in core/
modules/ config/ tests/ config_test/ src/ ConfigTestStorage.php - Delete entities upon synchronizing configuration changes.
- FieldConfigStorage::importDelete in core/
modules/ field/ src/ FieldConfigStorage.php - Delete entities upon synchronizing configuration changes.
2 methods override ConfigEntityStorage::importDelete()
- ConfigTestStorage::importDelete in core/
modules/ config/ tests/ config_test/ src/ ConfigTestStorage.php - Delete entities upon synchronizing configuration changes.
- FieldConfigStorage::importDelete in core/
modules/ field/ src/ FieldConfigStorage.php - Delete entities upon synchronizing configuration changes.
File
-
core/
lib/ Drupal/ Core/ Config/ Entity/ ConfigEntityStorage.php, line 380
Class
- ConfigEntityStorage
- Defines the storage class for configuration entities.
Namespace
Drupal\Core\Config\EntityCode
public function importDelete($name, Config $new_config, Config $old_config) {
$id = static::getIDFromConfigName($name, $this->entityType
->getConfigPrefix());
$entity = $this->load($id);
$entity->setSyncing(TRUE);
$entity->delete();
return TRUE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.