Deprecation: #97549 - ContentObjectRenderer->lastTypoLink* properties¶
See forge#97549
Description¶
When generating links via ContentObjectRenderer->typoLink()
,
it had been possible to retrieve information about the generated link
with the following public properties:
ContentObjectRenderer->lastTypoLinkUrl
ContentObjectRenderer->lastTypoLinkTarget
ContentObjectRenderer->lastTypoLinkLD
Since those information are also available in the LinkResultInterface
,
which is returned by ContentObjectRenderer->createLink()
or
can be accessed via ContentObjectRenderer->lastTypoLinkResult
,
these properties have now been deprecated.
Impact¶
Accessing these properties is still possible, but will stop working in TYPO3 v13.0. The extension scanner will detect any usage as weak match.
Affected installations¶
TYPO3 installations using these properties in their extensions in either PHP or TypoScript code.
Migration¶
It is recommended to retrieve this information via the LinkResultInterface
object returned by calling ContentObjectRenderer->createLink()
directly,
or if this is not possible via ContentObjectRenderer->lastTypoLinkResult
.