Feature: #102715 - New frontend.page.information request attribute
See forge#102715
Description
TYPO3 v13 introduces the new frontend-related PSR-7 request attribute
frontend.
implemented by class
\TYPO3\. The object aims to replace
various page related properties of
\TYPO3\.
Impact
There are three properties in
Typoscript frequently used by extensions,
which are now modeled in
\TYPO3\. The attribute is
attached to the PSR-7 frontend request by middleware
Typo,
middlewares below can rely on existence of that attribute. Examples:
$pageInformation = $request->getAttribute('frontend.page.information');
// Formerly $tsfe->id
$id = $pageInformation->getId();
// Formerly $tsfe->page
$page = $pageInformation->getPageRecord();
// Formerly $tsfe->rootLine
$rootLine = $pageInformation->getRootLine();