You are here

public static function EntityQueue::postDelete in Entityqueue 8

Acts on deleted entities before the delete hook is invoked.

Used after the entities are deleted but before invoking the delete hook.

Parameters

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage object.

\Drupal\Core\Entity\EntityInterface[] $entities: An array of entities.

Overrides ConfigEntityBundleBase::postDelete

File

src/Entity/EntityQueue.php, line 276

Class

EntityQueue
Defines the EntityQueue entity class.

Namespace

Drupal\entityqueue\Entity

Code

public static function postDelete(EntityStorageInterface $storage, array $entities) {
  parent::postDelete($storage, $entities);
  foreach ($entities as $queue) {
    $queue
      ->getHandlerPlugin()
      ->onQueuePostDelete($queue, $storage);
  }
}