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