Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verify_email
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
verify_email
Merge requests
!7
Issue
#3515924
: Add "check your email" page.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3515924
: Add "check your email" page.
issue/verify_email-3515924:3515924-add-check-your
into
1.0.x
Overview
10
Commits
5
Pipelines
6
Changes
4
Merged
Dhruv Mittal
requested to merge
issue/verify_email-3515924:3515924-add-check-your
into
1.0.x
1 month ago
Overview
10
Commits
5
Pipelines
6
Changes
4
Expand
Closes
#3515924
0
0
Merge request reports
Compare
1.0.x
version 4
5f3d1822
1 month ago
version 3
40e51f55
1 month ago
version 2
2ff858a5
1 month ago
version 1
0d4f7903
1 month ago
1.0.x (base)
and
latest version
latest version
b3ece269
5 commits,
1 month ago
version 4
5f3d1822
4 commits,
1 month ago
version 3
40e51f55
3 commits,
1 month ago
version 2
2ff858a5
2 commits,
1 month ago
version 1
0d4f7903
1 commit,
1 month ago
4 files
+
76
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
src/Controller/ThankYou.php
0 → 100644
+
40
−
0
Options
<?php
namespace
Drupal\verify_email\Controller
;
use
Drupal\Core\Controller\ControllerBase
;
use
Drupal\verify_email
\Entity\VerifyEmail
;
/**
* Controller for handling the thank you page.
*/
class
ThankYou
extends
ControllerBase
{
/**
* Renders the thank you page.
*
* @param \Drupal\verify_email\Entity\VerifyEmail|null $entity
* The verify email entity passed from the route.
*
* @return array
* A render array.
*/
public
function
thankYouPage
(
VerifyEmail
|
null
$entity
=
NULL
)
{
if
(
$entity
)
{
// Display the custom message.
$message
=
t
(
'Please check your email and click on the included link to verify your email address.'
);
return
[
'#markup'
=>
$message
,
'#title'
=>
t
(
'Thank you'
),
];
}
// Fallback message in case entity doesn't exist.
return
[
'#markup'
=>
t
(
'Something has gone wrong. Please try submitting your email address again.'
),
'#title'
=>
t
(
'Sorry'
),
];
}
}
Loading