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
GitLab 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
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
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
Issue #3363362: Check if revision entity exist.
Denis Viunyk
requested to merge
issue/node_revision_delete-3363362:2.0.x
into
2.0.x
May 29, 2023
Overview
0
Commits
2
Pipelines
1
Changes
1
0
0
Merge request reports
Compare
2.0.x
version 1
b9a80356
May 29, 2023
2.0.x (HEAD)
and
latest version
latest version
e58bdf52
2 commits,
9 months ago
version 1
b9a80356
1 commit,
May 29, 2023
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
View file @ f09e479b
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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