BeforeRedirectEvent¶
The PSR-14 event \TYPO3\
is
triggered before a redirect is made.
New in version 11.5.26/12.3
The methods set
and get
are available.
Example¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
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 ( ) ¶
-
- Returns
-
string
- getRedirectUrl ( ) ¶
-
- Returns
-
string
- setRedirectUrl ( string $redirectUrl) ¶
-
- param $redirectUrl
-
the redirectUrl
- getRequest ( ) ¶
-
- Returns
-
\Psr\
Http\ Message\ Server Request Interface