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

Public Member Functions

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

Private Attributes

FileInterface $file
 
string null $targetFileName
 

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 ( FileInterface  $file,
?string  $targetFileName 
)

Member Function Documentation

◆ getFile()

◆ getTargetFileName()

Member Data Documentation

◆ $file

FileInterface TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent::$file
private

◆ $targetFileName

string null TYPO3\CMS\Core\Resource\Event\BeforeFileRenamedEvent::$targetFileName
private