[TASK] Move image-related code from cObj to IMAGE
The methods within ContentObjectRenderer are only needed for rendering an IMAGE <img> tag and are moved to the right place in order to make cObj less fat: - cImage() - getBorderAttr() - getImageTagTemplate() - getImageSourceCollection() - linkWrap() - getAltParam() "imageLinkWrap()" is marked as internal for the time being, in order to refactor this code in TYPO3 v11. Resolves: #90861 Releases: master Change-Id: I4c11a5b3df393dbe63ad7401869d0faaa61b2418 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63949 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Documentation/Changelog/master/Deprecation-90861-Image-relatedMethodsWithinContentObjectRenderer.rst 53 additions, 0 deletions...90861-Image-relatedMethodsWithinContentObjectRenderer.rst
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 13 additions, 2 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/ContentObject/ImageContentObject.php 313 additions, 1 deletion...ext/frontend/Classes/ContentObject/ImageContentObject.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 0 additions, 502 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ImageContentObjectTest.php 558 additions, 0 deletions...ntend/Tests/Unit/ContentObject/ImageContentObjectTest.php
- typo3/sysext/install/Configuration/ExtensionScanner/Php/MethodCallMatcher.php 42 additions, 0 deletions.../Configuration/ExtensionScanner/Php/MethodCallMatcher.php
Please register or sign in to comment