BeforeFileReplacedEvent¶
The PSR-14 event \TYPO3\CMS\Core\Resource\Event\BeforeFileReplacedEvent
is fired before a file is about to be replaced. Custom listeners can check for
file integrity or analyze the content of the file before it gets added.
Example¶
Note
Currently, we do not have an example for this event. If you can provide a useful one, please open an issue with your code snippets or a pull request.
API¶
- class \TYPO3\CMS\Core\Resource\Event\ BeforeFileReplacedEvent¶
-
This event is fired before a file is about to be replaced.
Custom listeners can check for file integrity or analyze the content of the file before it gets added.
- getFile ( ) ¶
-
- returntype
-
TYPO3\CMS\Core\Resource\FileInterface
- getLocalFilePath ( ) ¶
-
- returntype
-
string