BeforePageIsResolvedEvent¶
New in version 12.0
This PSR-14 event replaces the
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['determineId-PreProcessing']
hook.
The PSR-14 event \TYPO3\CMS\Frontend\Event\BeforePageIsResolvedEvent
is
processed when the main class TypoScriptFrontendController
is resolving a
page and its root line, based on the incoming request.
The event fires before the frontend process attempts to fully resolve a given
page based on its page ID and request. Event listeners can modify incoming
parameters (such as $controller->id
) or the context for resolving a page.
Note
There are three events in the process when the main
TypoScriptFrontendController
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 \TYPO3\CMS\Frontend\Event\ BeforePageIsResolvedEvent¶
-
A PSR-14 event fired before the frontend process is trying to fully resolve a given page by its page ID and the request.
Event Listeners can modify incoming parameters (such as $controller->id) or modify the context for resolving a page.
- getController ( ) ¶
-
- returntype
-
TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
- getRequest ( ) ¶
-
- returntype
-
Psr\Http\Message\ServerRequestInterface