BeforeFileRenamedEvent
FinalYes
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.
Table of Contents
Methods
- __construct() : mixed
- getFile() : FileInterface
- getTargetFileName() : string|null
Methods
__construct()
public
__construct(FileInterface $file, string|null $targetFileName) : mixed
Parameters
- $file : FileInterface
- $targetFileName : string|null
getFile()
public
getFile() : FileInterface
Return values
FileInterfacegetTargetFileName()
public
getTargetFileName() : string|null