AfterPageAndLanguageIsResolvedEvent¶
New in version 12.0
This PSR-14 event replaces the following hooks:
The PSR-14 event \TYPO3\
is fired in the frontend process after a given page has been resolved
including its language.
This event modifies TYPO3's language resolution logic through custom additions. It also allows sending a custom response via event listeners (for example, a custom 403 response).
Note
There are three events in the process when the main
Typo
class resolves a page and its root line
based on the incoming request. They are triggered in the following order:
- BeforePageIsResolvedEvent
- AfterPageWithRootLineIsResolvedEvent
- AfterPageAndLanguageIsResolvedEvent
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 AfterPageAndLanguageIsResolvedEvent ¶
-
- Fully qualified name
-
\TYPO3\
CMS\ Frontend\ Event\ After Page And Language Is Resolved Event
A PSR-14 event fired in the frontend process after a given page has been resolved including its language.
This event is intended to e.g. modify TYPO3's language resolving logic by custom additions. This event also allows to send a custom Response via Event Listeners (e.g. a custom 403 response)
- getController ( ) ¶
-
- Returns
-
\TYPO3\
CMS\ Frontend\ Controller\ Typo Script Frontend Controller
- getRequest ( ) ¶
-
- Returns
-
\Psr\
Http\ Message\ Server Request Interface
- getResponse ( ) ¶
-
- Returns
-
?\
Psr\ Http\ Message\ Response Interface
- setResponse ( ?\Psr\Http\Message\ResponseInterface $response) ¶
-
- param $response
-
the response