Deprecation: #90861 - Image-related methods within ContentObjectRenderer¶
See Issue #90861
The following methods within
all which are related to generating
<img> tags for TYPO3 Frontend output via TypoScript, have been marked as deprecated:
An additional method,
imageLinkWrap() has been marked as “internal” now in order to allow refactoring in future TYPO3 versions.
All methods have been moved to the
ImageContentObject class, als known as “IMAGE” cObject.
The methods purpose is only relevant for generating IMAGE, thus making the actual ContentObjectRenderer class smaller.
Any TypoScript configuration using code of this is not affected.
Only third-party extensions that use this code for frontend-related
image rendering might directly call these PHP methods. Calling these
methods will trigger a PHP
TYPO3 installations with custom third-party extensions calling these methods. TYPO3’s Extension Scanner code can directly detect these calls.
As all moved methods are protected, it is recommended to either extend the ImageContentObject class, or copy the respective code into the third-party extension requiring this code.