‪TYPO3CMS  ‪main
TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent Class Reference

Public Member Functions

 __construct (private readonly string $loginType, private string $redirectUrl, private readonly ServerRequestInterface $request,)
 
 getLoginType ()
 
 getRedirectUrl ()
 
 setRedirectUrl (string $redirectUrl)
 
 getRequest ()
 

Detailed Description

Notification before a redirect is made, which also allows to modify the actual redirect URL. Setting the redirect to an empty string will avoid triggering a redirect.

Definition at line 27 of file BeforeRedirectEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent::__construct ( private readonly string  $loginType,
private string  $redirectUrl,
private readonly ServerRequestInterface  $request 
)

Definition at line 29 of file BeforeRedirectEvent.php.

Member Function Documentation

◆ getLoginType()

TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent::getLoginType ( )

Definition at line 35 of file BeforeRedirectEvent.php.

◆ getRedirectUrl()

TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent::getRedirectUrl ( )

Definition at line 40 of file BeforeRedirectEvent.php.

◆ getRequest()

TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent::getRequest ( )

Definition at line 50 of file BeforeRedirectEvent.php.

◆ setRedirectUrl()

TYPO3\CMS\FrontendLogin\Event\BeforeRedirectEvent::setRedirectUrl ( string  $redirectUrl)

Definition at line 45 of file BeforeRedirectEvent.php.