public function ConfigEntityStorage::importDelete in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete()
- 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::importDelete()
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 ImportableEntityStorageInterface::importDelete
1 call to ConfigEntityStorage::importDelete()
- FieldConfigStorage::importDelete in core/
modules/ field/ src/ FieldConfigStorage.php - Delete entities upon synchronizing configuration changes.
1 method overrides ConfigEntityStorage::importDelete()
- 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 376
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;
}