You are here

protected function ConfigEntityStorage::doDelete in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::doDelete()
  2. 9 core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php \Drupal\Core\Config\Entity\ConfigEntityStorage::doDelete()

Performs storage-specific entity deletion.

Parameters

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entity objects to delete.

Overrides EntityStorageBase::doDelete

File

core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php, line 226

Class

ConfigEntityStorage
Defines the storage class for configuration entities.

Namespace

Drupal\Core\Config\Entity

Code

protected function doDelete($entities) {
  foreach ($entities as $entity) {
    $this->configFactory
      ->getEditable($this
      ->getPrefix() . $entity
      ->id())
      ->delete();
  }
}