public static function EntityQueue::preDelete in Entityqueue 8
Acts on entities before they are deleted and before hooks are invoked.
Used before the entities are deleted and 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 ConfigEntityBase::preDelete
File
- src/
Entity/ EntityQueue.php, line 265
Class
- EntityQueue
- Defines the EntityQueue entity class.
Namespace
Drupal\entityqueue\EntityCode
public static function preDelete(EntityStorageInterface $storage, array $entities) {
parent::preDelete($storage, $entities);
foreach ($entities as $queue) {
$queue
->getHandlerPlugin()
->onQueuePreDelete($queue, $storage);
}
}