BeforeFileContentsSetEvent
FinalYes
This event is fired before the contents of a file gets set / replaced.
This allows to further analyze or modify the content of a file before it is written by the driver.
Table of Contents
Methods
- __construct() : mixed
- getContent() : string
- getFile() : FileInterface
- setContent() : void
Methods
__construct()
public
__construct(FileInterface $file, string $content) : mixed
Parameters
- $file : FileInterface
- $content : string
getContent()
public
getContent() : string
Return values
stringgetFile()
public
getFile() : FileInterface
Return values
FileInterfacesetContent()
public
setContent(string $content) : void
Parameters
- $content : string