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

Public Member Functions

 __construct (FileInterface $file, string $content)
 
 getFile ()
 
 getContent ()
 
 setContent (string $content)
 

Private Attributes

FileInterface $file
 
string $content
 

Detailed Description

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.

Definition at line 27 of file BeforeFileContentsSetEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\BeforeFileContentsSetEvent::__construct ( FileInterface  $file,
string  $content 
)

Member Function Documentation

◆ getContent()

◆ getFile()

◆ setContent()

TYPO3\CMS\Core\Resource\Event\BeforeFileContentsSetEvent::setContent ( string  $content)

Member Data Documentation

◆ $content

◆ $file

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