Feature: #72904 - Add preProcessStorage signal to ResourceFactory¶
See forge#72904
Description¶
This patch introduces a new signal before a resource storage is initialized.
Register the class which implements your logic in ext_localconf.php
:
$dispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
$dispatcher->connect(
\TYPO3\CMS\Core\Resource\ResourceFactory::class,
ResourceFactoryInterface::SIGNAL_PreProcessStorage,
\MY\ExtKey\Slots\ResourceFactorySlot::class,
'preProcessStorage'
);
The method is called with the following arguments:
int
$uid
the uid of the recordarray
$recordData
all record data as arraystring
$fileIdentifier
the file identifier