Skip to content
Snippets Groups Projects

Issue #3363362: Check if revision entity exist.

Open Denis Viunyk requested to merge issue/node_revision_delete-3363362:2.0.x into 2.0.x
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
@@ -95,6 +95,10 @@ class NodeRevisionDelete extends QueueWorkerBase implements ContainerFactoryPlug
/** @var \Drupal\node\NodeInterface $revision */
$revision = $this->entityTypeManager->getStorage('node')->loadRevision($vid);
if (!$revision instanceof NodeInterface) {
break;
}
// We have to track revisions per language, otherwise unexpected behavior
// and even loss of data might occur. Try to find the revision language
// by checking which translation was affected.
Loading