You are here

protected function TransactionTypeStorage::doDelete in Transaction 8

Performs storage-specific entity deletion.

Parameters

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

Overrides ConfigEntityStorage::doDelete

File

src/TransactionTypeStorage.php, line 125

Class

TransactionTypeStorage
Transaction type storage handler.

Namespace

Drupal\transaction

Code

protected function doDelete($entities) {
  parent::doDelete($entities);

  // Remove existent local task in the target entity type.
  $changes = FALSE;
  foreach ($entities as $entity) {
    $changes = $changes || $this
      ->updateLocalTask($entity, FALSE);
  }
  if ($changes) {
    $this
      ->clearLocalTaskCache();
  }
}