Skip to content

Commit

Permalink
[TASK] #102873 - Add localRootLine to PageInformation (TYPO3-Document…
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml authored Jan 23, 2024
1 parent 6699b73 commit b18cf43
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ Frontend page information
.. attention::
The class is currently still marked as experimental. However, extension
authors are encouraged to use information from this request attribute
instead of the :php:`TyposcriptFrontendController` properties already: TYPO3
Core v13 will try to not break especially the getters / properties not
marked as :php:`@internal`.
instead of the :php:`TyposcriptFrontendController` (TSFE) properties
already: TYPO3 Core v13 will try to not break especially the getters /
properties not marked as :php:`@internal`.

The :php:`frontend.page.information` frontend request attribute provides
frequently used page information. The attribute is attached to the PSR-7
Expand All @@ -39,5 +39,8 @@ of that attribute.
// Formerly $tsfe->rootLine
$rootLine = $pageInformation->getRootLine();
// Formerly $tsfe->config['rootLine']
$rootLine = $pageInformation->getLocalRootLine();
.. todo: Add API when class is not marked as internal anymore

0 comments on commit b18cf43

Please sign in to comment.