AfterFileReplacedEvent

The PSR-14 event \TYPO3\CMS\Core\Resource\Event\AfterFileReplacedEvent is fired after a file was replaced.

Example: Further process a file or create variants, or index the contents of a file for AI analysis etc.

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\AfterFileReplacedEvent

This event is fired after a file was replaced.

Example: Further process a file or create variants, or index the contents of a file for AI analysis etc.

getFile()
Return type

TYPO3\CMS\Core\Resource\FileInterface

getLocalFilePath()
Return type

string