Deprecation: #96641 - Link-related functionality in ContentObjectRenderer
See forge#96641
Description
Various methods related to shorthand syntax of generating links and URLs have been marked as deprecated:
Content
Object Renderer->get ATag Params () Content
Object Renderer->get Typo Link () Content
Object Renderer->get Url To Current Location () Content
Object Renderer->get Typo Link_ URL ()
They are related to functionality for generating URLs,
and have been marked as deprecated in favor of the new LinkFactory
API, and the existing $c
and $c
methods.
Impact
Calling these methods in your own PHP code will trigger PHP E_
errors.
Affected Installations
TYPO3 installations with custom extensions using these methods for generating links. The extension scanner in the Upgrade module / Install tool will show affected occurrences.
Migration
It is recommended to use either existing API calls:
Content
Object Renderer->typo Link () Content
Object Renderer->typo Link_ URL ()
or the new methods for code that should be compatible with TYPO3 v12+ - only:
Content
Object Renderer->create Url () Content
Object Renderer->create Link ()
or calling the LinkFactory API directly.