return FALSE;
} break;
case 'create':
if ($target_exists) { // If the target already exists, use the entity storage to delete it
// again, if is a simple config, delete it directly.
if ($entity_type_id =
$this->configManager->
getEntityTypeIdByName($name)) { $entity_storage =
$this->configManager->
getEntityTypeManager()->
getStorage($entity_type_id);
$entity_type =
$this->configManager->
getEntityTypeManager()->
getDefinition($entity_type_id);
$entity =
$entity_storage->
load($entity_storage->
getIDFromConfigName($name,
$entity_type->
getConfigPrefix()));
$entity->
delete();
$this->
logError($this->
t('Deleted and replaced configuration entity "@name"',
['@name' =>
$name]));
} else { $this->storageComparer->
getTargetStorage($collection)->
delete($name);
$this->
logError($this->
t('Deleted and replaced configuration "@name"',
['@name' =>
$name]));
} return TRUE;
} break;