BeforeFileRenamedEvent

The PSR-14 event \TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent is fired before a file is about to be renamed. Custom listeners can further rename the file according to specific guidelines based on the project.

Example

API

class BeforeFileRenamedEvent
Fully qualified name
\TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent

This event is fired before a file is about to be renamed. Custom listeners can further rename the file according to specific guidelines based on the project.

getFile ( )
Returns
\TYPO3\CMS\Core\Resource\FileInterface
getTargetFileName ( )
Returns
?string