‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent Class Reference

Public Member Functions

 __construct (private readonly FileInterface $file, private readonly ?string $targetFileName)
 
 getFile ()
 
 getTargetFileName ()
 

Detailed Description

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.

Definition at line 26 of file BeforeFileRenamedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent::__construct ( private readonly FileInterface  $file,
private readonly ?string  $targetFileName 
)

Definition at line 28 of file BeforeFileRenamedEvent.php.

Member Function Documentation

◆ getFile()

TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent::getFile ( )

◆ getTargetFileName()

TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent::getTargetFileName ( )