protected function DeletedWorkspaceQueue::deleteEntity in Multiversion 8
Parameters
\Drupal\Core\Entity\ContentEntityStorageInterface $storage:
\Drupal\Core\Entity\ContentEntityStorageInterface $entity:
1 call to DeletedWorkspaceQueue::deleteEntity()
- DeletedWorkspaceQueue::processItem in src/
Plugin/ QueueWorker/ DeletedWorkspaceQueue.php
File
- src/
Plugin/ QueueWorker/ DeletedWorkspaceQueue.php, line 115
Class
- DeletedWorkspaceQueue
- Class DeletedWorkspaceQueue
Namespace
Drupal\multiversion\Plugin\QueueWorkerCode
protected function deleteEntity($storage, $entity) {
try {
$storage
->delete([
$entity,
]);
} catch (Exception $e) {
$arguments = Error::decodeException($e) + [
'%uuid' => $entity
->uuid(),
];
$message = t('%type: @message in %function (line %line of %file). The error occurred while deleting the entity with the UUID: %uuid.', $arguments);
watchdog_exception('Multiversion', $e, $message);
}
}