Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-2980952
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-2980952
Commits
40767460
Commit
40767460
authored
1 month ago
by
David Cameron
Browse files
Options
Downloads
Patches
Plain Diff
typo
parent
4b7867a0
No related branches found
No related tags found
No related merge requests found
Pipeline
#458787
passed
1 month ago
Stage: 🪄 Lint
Stage: 🗜️ Test
Pipeline: drupal-2980952
#458791
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/modules/user/src/Form/UserCancelForm.php
+1
-1
1 addition, 1 deletion
core/modules/user/src/Form/UserCancelForm.php
with
1 addition
and
1 deletion
core/modules/user/src/Form/UserCancelForm.php
+
1
−
1
View file @
40767460
...
...
@@ -152,7 +152,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->
logger
(
'user'
)
->
info
(
'Sent account cancellation request to %name %email.'
,
[
'%name'
=>
$this
->
entity
->
label
(),
'%email'
=>
'<'
.
$this
->
entity
->
getEmail
()
.
'>'
]);
$cancel_message
=
$this
->
t
(
'A confirmation request to cancel your account has been sent to your email address.'
);
if
(
$this
->
entity
->
id
()
!==
$this
->
currentUser
()
->
id
())
{
{
if
(
$this
->
entity
->
id
()
!==
$this
->
currentUser
()
->
id
())
{
$cancel_message
=
$this
->
t
(
"A confirmation request to cancel the account %name has been sent to the user's email address."
,
[
'%name'
=>
$this
->
entity
->
label
()]);
}
$this
->
messenger
()
->
addStatus
(
$cancel_message
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment