Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
entity_usage_updater
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
entity_usage_updater
Merge requests
!5
Could not authenticate you from Jwt because "Can't verify csrf token authenticity.".
Resolve
#3482714
"Add ability to"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
#3482714
"Add ability to"
issue/entity_usage_updater-3482714:3482714-add-ability-to
into
1.0.x
Overview
0
Commits
18
Pipelines
14
Changes
18
Merged
Alex Pott
requested to merge
issue/entity_usage_updater-3482714:3482714-add-ability-to
into
1.0.x
5 months ago
Overview
0
Commits
18
Pipelines
14
Changes
18
Expand
Closes
#3482714
0
0
Merge request reports
Compare
1.0.x
version 13
e3f00083
5 months ago
version 12
4d2e3b21
5 months ago
version 11
f7df35bd
5 months ago
version 10
360d2539
5 months ago
version 9
5a1b0f57
5 months ago
version 8
b564dfad
5 months ago
version 7
b5705fb8
5 months ago
version 6
9de1afbe
5 months ago
version 5
a576347f
5 months ago
version 4
14b7fe05
5 months ago
version 3
d657bc15
5 months ago
version 2
fe667058
5 months ago
version 1
da4d8de4
5 months ago
1.0.x (base)
and
latest version
latest version
e3f00083
18 commits,
5 months ago
version 13
e3f00083
18 commits,
5 months ago
version 12
4d2e3b21
17 commits,
5 months ago
version 11
f7df35bd
16 commits,
5 months ago
version 10
360d2539
15 commits,
5 months ago
version 9
5a1b0f57
14 commits,
5 months ago
version 8
b564dfad
12 commits,
5 months ago
version 7
b5705fb8
11 commits,
5 months ago
version 6
9de1afbe
10 commits,
5 months ago
version 5
a576347f
9 commits,
5 months ago
version 4
14b7fe05
8 commits,
5 months ago
version 3
d657bc15
7 commits,
5 months ago
version 2
fe667058
4 commits,
5 months ago
version 1
da4d8de4
2 commits,
5 months ago
18 files
+
659
−
146
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
18
Search (e.g. *.vue) (Ctrl+P)
src/Form/EntityUsageUpdateForm.php
+
18
−
0
Options
@@ -104,6 +104,12 @@ class EntityUsageUpdateForm extends FormBase {
'#type'
=>
'submit'
,
'#value'
=>
$this
->
t
(
"Update"
),
];
$form
[
'actions'
][
'remove'
]
=
[
'#type'
=>
'submit'
,
'#value'
=>
$this
->
t
(
"Remove"
),
'#submit'
=>
[[
$this
,
'removeUsages'
]],
'#limit_validation_errors'
=>
[[
'entity_type_id'
],
[
'old_entity_id'
]],
];
return
$form
;
}
@@ -152,4 +158,16 @@ class EntityUsageUpdateForm extends FormBase {
]);
}
/**
* {@inheritdoc}
*/
public
function
removeUsages
(
array
&
$form
,
FormStateInterface
$form_state
):
void
{
$entity_type_id
=
$form_state
->
getValue
(
'entity_type_id'
);
$this
->
entityUsageUpdater
->
remove
([
$entity_type_id
=>
[
$form_state
->
getValue
(
'old_entity_id'
),
],
]);
}
}
Loading