MediaWiki master
MediaWiki\Mail\ConfirmEmail\EmailConfirmationBannerHandler Class Reference

Decides whether to show the email confirmation banner to a given user. More...

Public Member Functions

 __construct (private readonly ServiceOptions $options)
 
 shouldShowBanner (User $user, Title $title)
 Returns true if the email confirmation banner should be shown for the given user on the given page.
 

Public Attributes

const array CONSTRUCTOR_OPTIONS
 

Detailed Description

Decides whether to show the email confirmation banner to a given user.

Definition at line 13 of file EmailConfirmationBannerHandler.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Mail\ConfirmEmail\EmailConfirmationBannerHandler::__construct ( private readonly ServiceOptions $options)

Definition at line 20 of file EmailConfirmationBannerHandler.php.

Member Function Documentation

◆ shouldShowBanner()

MediaWiki\Mail\ConfirmEmail\EmailConfirmationBannerHandler::shouldShowBanner ( User $user,
Title $title )

Returns true if the email confirmation banner should be shown for the given user on the given page.

Parameters
User$user
Title$titleCurrent page title
Returns
bool

Definition at line 32 of file EmailConfirmationBannerHandler.php.

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const array MediaWiki\Mail\ConfirmEmail\EmailConfirmationBannerHandler::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const EmailConfirmationBanner
Name constant for the EmailConfirmationBanner setting, for use with Config::get()
const EmailAuthentication
Name constant for the EmailAuthentication setting, for use with Config::get()

Definition at line 15 of file EmailConfirmationBannerHandler.php.


The documentation for this class was generated from the following file: