Deprecation: #95254 - Two FlexFormTools methods
See forge#95254
Description
Two detail methods of class
\TYPO3\
have been marked as deprecated:
FlexForm Tools->get Array Value By Path () FlexForm Tools->set Array Value By Path ()
Impact
Calling the methods will trigger a PHP
E_ error.
Affected Installations
Some instances may contain extensions calling above methods. The extension scanner will find usages as weak match.
Migration
The methods can be substituted with two counterparts from
\TYPO3\. They exist since TYPO3 v7 already. Their
signature is slightly different, but usages should be simple to adapt:
// use TYPO3\CMS\Core\Utility\ArrayUtility;
// before
$value = $flexFormTools->getArrayValueByPath('search/path', $searchArray);
// after
$value = ArrayUtility::getValueByPath($searchArray, 'search/path');
// before
$flexFormTools->setArrayValueByPath('set/path', $dataArray, $value);
// after
$dataArray = ArrayUtility::setValueByPath($dataArray, 'set/path', $value);
Copied!