BeforeRedirectEvent¶
New in version 10.4
This event replaces the $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['beforeRedirect']
hook from the pibase plugin.
The notification event is triggered before a redirect is made.
New in version 11.5.26
The methods setRedirectUrl()
and getRequest()
are available.
API¶
- class \TYPO3\CMS\FrontendLogin\Event\ BeforeRedirectEvent
-
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.
- getLoginType ( )
-
- returntype
-
string
- getRedirectUrl ( )
-
- returntype
-
string
- setRedirectUrl ( string $redirectUrl)
-
- param string $redirectUrl
-
the redirectUrl
- getRequest ( )
-
- returntype
-
Psr\Http\Message\ServerRequestInterface