Deprecation: #69262 - Move marker substitution functionality to own class
See forge#69262
Description
The marker substitution functionality has been moved from core/
to it's own
class core/
The following methods within HtmlParser have been marked as deprecated.
HtmlParser::getSubpart()
HtmlParser::substituteSubpart()
HtmlParser::substituteSubpartArray()
HtmlParser::substituteMarker()
HtmlParser::substituteMarkerArray()
HtmlParser::substituteMarkerAndSubpartArrayRecursive()
Copied!
Impact
Any usage of these methods will trigger a deprecation log entry.
Affected Installations
Extensions that call these PHP methods directly.
Migration
Change the use statement from TYPO3\
to TYPO3\
and create an instance of this service class.
The methods are not static anymore, but named as before.
$templateService = GeneralUtility::makeInstance(MarkerBasedTemplateService::class);
$templateService->getSubpart()
$templateService->substituteSubpart()
$templateService->substituteSubpartArray()
$templateService->substituteMarker()
$templateService->substituteMarkerArray()
$templateService->substituteMarkerAndSubpartArrayRecursive()
Copied!