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

Public Member Functions

 __construct (private readonly FileInterface $file, private string $content)
 
 getFile ()
 
 getContent ()
 
 setContent (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 ( private readonly FileInterface  $file,
private string  $content 
)

Definition at line 29 of file BeforeFileContentsSetEvent.php.

Member Function Documentation

◆ getContent()

TYPO3\CMS\Core\Resource\Event\BeforeFileContentsSetEvent::getContent ( )

◆ getFile()

TYPO3\CMS\Core\Resource\Event\BeforeFileContentsSetEvent::getFile ( )

◆ setContent()

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

Definition at line 41 of file BeforeFileContentsSetEvent.php.