Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
node_revision_delete
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
node_revision_delete
Merge requests
!21
Issue
#3363362
: Check if revision entity exist.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3363362
: Check if revision entity exist.
issue/node_revision_delete-3363362:2.0.x
into
2.0.x
Overview
0
Commits
2
Pipelines
1
Changes
1
Open
Denis Viunyk
requested to merge
issue/node_revision_delete-3363362:2.0.x
into
2.0.x
1 year ago
Overview
0
Commits
2
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
2.0.x
version 1
b9a80356
1 year ago
2.0.x (HEAD)
and
latest version
latest version
e58bdf52
2 commits,
6 months ago
version 1
b9a80356
1 commit,
1 year ago
1 file
+
4
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Plugin/QueueWorker/NodeRevisionDelete.php
+
4
−
0
Options
@@ -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