ConfigEntityStorage::doDelete

protected ConfigEntityStorage::doDelete($entities)

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 232

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();
  }
}
doc_Drupal
2016-10-29 08:52:53
Comments
Leave a Comment

Please login to continue.