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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!8989
Creating Enum for the User mail constants
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Creating Enum for the User mail constants
issue/drupal-2582951:2582951-use-an-enum
into
11.x
Overview
2
Commits
2
Pipelines
2
Changes
19
Open
Arunkumar Kuppuswamy
requested to merge
issue/drupal-2582951:2582951-use-an-enum
into
11.x
10 months ago
Overview
2
Commits
2
Pipelines
2
Changes
19
Expand
Closes
#2582951
0
0
Merge request reports
Compare
11.x
version 1
2c100524
10 months ago
11.x (base)
and
latest version
latest version
c7d07a7a
2 commits,
10 months ago
version 1
2c100524
1 commit,
10 months ago
19 files
+
198
−
114
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
19
Search (e.g. *.vue) (Ctrl+P)
core/lib/Drupal/Core/Utility/UserEmailNotification.php
0 → 100644
+
66
−
0
Options
<?php
// phpcs:ignoreFile
declare
(
strict_types
=
1
);
namespace
Drupal\Core\Utility
;
/**
* Enumeration of constant related User email notification.
*/
enum
UserEmailNotification
:
string
{
/**
* Email notification operation for the welcome message sent to the user
* created by an administrator.
*/
case
RegisterAdminCreated
=
'register_admin_created'
;
/**
* Email notification operation for the welcome message sent to the user who
* registered and didn't need to be approved by an administrator.
*/
case
RegisterNoApprovalRequired
=
'register_no_approval_required'
;
/**
* Email notification operation for the welcome message sent to the user who
* registered, but needs to be approved by an administrator.
*/
case
RegisterPendingApproval
=
'register_pending_approval'
;
/**
* Email notification operation for the message sent to an administrator, after
* a user has registered and needs approval.
*/
case
RegisterPendingApprovalAdmin
=
'register_pending_approval_admin'
;
/**
* Email notification operation for the message sent to the user who requested
* a password recovery.
*/
case
PasswordReset
=
'password_reset'
;
/**
* Email notification operation for the message sent to the user whose status
* has been activated.
*/
case
StatusActivated
=
'status_activated'
;
/**
* Email notification operation for the message sent to the user whose status
* has been set to blocked.
*/
case
StatusBlocked
=
'status_blocked'
;
/**
* Email notification operation for the message sent to the user whose status
* has been set to canceled.
*/
case
StatusCanceled
=
'status_canceled'
;
/**
* Email notification operation for the message sent to the user to confirm
* the account cancellation request.
*/
case
CancelConfirm
=
'cancel_confirm'
;
}
Loading