Deprecation: #90937 - Various hooks in ContentObjectRenderer
See forge#90937
Description
The following hooks within class Content
have been marked as deprecated:
$GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['tslib/ class. tslib_ content. php'] ['c Obj Type And Class'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['tslib/ class. tslib_ content. php'] ['c Obj Type And Class Default'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['tslib/ class. tslib_ content. php'] ['ext Link ATag Params Handler'] $GLOBALS
['TYPO3_ CONF_ VARS'] ['SC_ OPTIONS'] ['tslib/ class. tslib_ content. php'] ['typolink Link Handler']
All hooks have been available for a long time, and several new concepts and APIs that have been added in previous LTS versions already, that superseded these hooks.
Impact
Extensions registering the any one of the hooks listed above will trigger a PHP E_
error when the code is executed.
Affected Installations
TYPO3 installations with older extensions implementing one of the hooks above, which is very rare and only serve specific use-cases
for rendering ContentObjects or custom link style tags that are not related to TYPO3 v8 linking syntax (t3://...
).
Migration
The hooks c
and c
can be simplified by using the new way of registering custom ContentObjects via:
$GLOBALS
- see EXT:
for examples - TYPO3 Core adds its shipped ContentObjects exactly the same way.
The typolink
hook is used for registering custom link syntax that start with a certain keyword such as "news:13".
Since TYPO3 v8, LinkHandler support has been added to TYPO3 Core natively, using the new t3://
syntax.
The "LinkHandler" registry can be extended via $GLOBALS
and $GLOBALS
that serves the same purpose with a better API.