You are here

protected function EdgeEntityStorageBase::doDelete in Apigee Edge 8

Performs storage-specific entity deletion.

Parameters

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

Overrides EntityStorageBase::doDelete

1 call to EdgeEntityStorageBase::doDelete()
TeamStorage::doDelete in modules/apigee_edge_teams/src/Entity/Storage/TeamStorage.php
Performs storage-specific entity deletion.
1 method overrides EdgeEntityStorageBase::doDelete()
TeamStorage::doDelete in modules/apigee_edge_teams/src/Entity/Storage/TeamStorage.php
Performs storage-specific entity deletion.

File

src/Entity/Storage/EdgeEntityStorageBase.php, line 148

Class

EdgeEntityStorageBase
Base entity storage class for Apigee Edge entities.

Namespace

Drupal\apigee_edge\Entity\Storage

Code

protected function doDelete($entities) {
  $this
    ->withController(function (EdgeEntityControllerInterface $controller) use ($entities) {
    foreach ($entities as $entity) {

      /** @var \Drupal\Core\Entity\EntityInterface $entity */
      $controller
        ->delete($entity
        ->id());
    }
  });
}