Skip to content

Commit

Permalink
[TASK] #100405 - Deprecate property TypoScriptFrontendController->type (
Browse files Browse the repository at this point in the history
#941)

Related: TYPO3-Documentation/Changelog-To-Doc#444
Releases: main, 12.4
  • Loading branch information
brotkrueml authored Dec 19, 2023
1 parent 238ba38 commit 6fda26e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Documentation/AppendixA/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,26 @@ writing: :php:`TypoScriptFrontendController->id`.
Variable
type

.. versionchanged:: 12.4
The property has been marked as deprecated and will be removed with
v13.0.

PHP-Type
integer

Description
The type

Migration
When using this property in PHP code via :php:`$GLOBALS['TSFE']->type`,
it is recommended to move to the
:ref:`PSR-7 request <t3coreapi:typo3-request>` via
:php:`$request->getAttribute('routing')->getPageType()`, which is the
property of the :php:`PageArguments` object, as a result of the
:php:`GET` parameter :php:`type`, or
:php:`$GLOBALS['TSFE']->getPageArguments()->getPageType()`, if the
request object is not available.


.. container:: table-row

Expand Down

0 comments on commit 6fda26e

Please sign in to comment.