Deprecation: #90522 - TSFE properties regarding images
See forge#90522
Description
The image related properties
$images and
$last of
Typo have been marked as deprecated.
Impact
Calling these properties will trigger a PHP
E_ error.
Affected Installations
All installations using these properties are affected.
Migration
For
$images the AssetCollector may be used instead:
$assetCollector = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(TYPO3\CMS\Core\Page\AssetCollector::class);
$imagesOnPage = $assetCollector->getMedia();
Copied!