BeforeFileReplacedEvent
Read onlyYes
FinalYes
This event is fired before a file is about to be replaced.
Custom listeners can check for file integrity or analyze the content of the file before it gets added.
Table of Contents
Methods
- __construct() : mixed
- getFile() : FileInterface
- getLocalFilePath() : string
Methods
__construct()
public
__construct(FileInterface $file, string $localFilePath) : mixed
Parameters
- $file : FileInterface
- $localFilePath : string
getFile()
public
getFile() : FileInterface
Return values
FileInterfacegetLocalFilePath()
public
getLocalFilePath() : string