You are here

protected function ConfigEntityStorage::doDelete in Drupal 8

Same name and namespace in other branches
  1. 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 236

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();
  }
}