BeforeRedirectEvent¶
New in version 10.4
This event replaces the $GLOBALS
hook from the pibase plugin.
The notification event is triggered before a redirect is made.
New in version 11.5.26
The methods set
and get
are available.
API¶
- class BeforeRedirectEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Frontend Login\ Event\ Before Redirect Event
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