Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
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
drupal
Merge requests
!5326
3040556 - 11.x version
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
3040556 - 11.x version
issue/drupal-3040556:3040556-duplicate-hook-11-x
into
11.x
Overview
0
Commits
10
Pipelines
10
Changes
18
Open
3040556 - 11.x version
Jukka Huhta
requested to merge
issue/drupal-3040556:3040556-duplicate-hook-11-x
into
11.x
Nov 10, 2023
Overview
0
Commits
10
Pipelines
10
Changes
18
Closes
#3040556
0
0
Merge request reports
Compare
11.x
version 9
bc3590df
Jul 3, 2024
version 8
d068adb7
Jul 3, 2024
version 7
12d015ff
Jul 3, 2024
version 6
12ee509b
Feb 16, 2024
version 5
a64b4586
Feb 16, 2024
version 4
a39f5ba1
Nov 10, 2023
version 3
3b007854
Nov 10, 2023
version 2
c63ac7e4
Nov 10, 2023
version 1
6a3203a3
Nov 10, 2023
11.x (base)
and
latest version
latest version
6f12afce
10 commits,
Jul 8, 2024
version 9
bc3590df
9 commits,
Jul 3, 2024
version 8
d068adb7
8 commits,
Jul 3, 2024
version 7
12d015ff
7 commits,
Jul 3, 2024
version 6
12ee509b
6 commits,
Feb 16, 2024
version 5
a64b4586
5 commits,
Feb 16, 2024
version 4
a39f5ba1
4 commits,
Nov 10, 2023
version 3
3b007854
3 commits,
Nov 10, 2023
version 2
c63ac7e4
2 commits,
Nov 10, 2023
version 1
6a3203a3
1 commit,
Nov 10, 2023
18 files
+
360
−
85
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php
+
3
−
4
View file @ 6f12afce
Edit in single-file editor
Open in Web IDE
Show full file
@@ -220,12 +220,11 @@ public function isUninstalling() {
/**
* {@inheritdoc}
*/
public
function
create
Duplicate
()
{
$duplicate
=
parent
::
create
Duplicate
();
public
function
post
Duplicate
(
EntityStorageInterface
$storage
)
{
parent
::
post
Duplicate
(
$storage
);
// Prevent the new duplicate from being misinterpreted as a rename.
$duplicate
->
setOriginalId
(
NULL
);
return
$duplicate
;
$this
->
setOriginalId
(
NULL
);
}
/**
Loading