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

Public Member Functions

 __construct (private FileInterface $file, private string $localFilePath)
 
 getFile ()
 
 getLocalFilePath ()
 

Detailed Description

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.

Definition at line 26 of file BeforeFileReplacedEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\BeforeFileReplacedEvent::__construct ( private FileInterface  $file,
private string  $localFilePath 
)

Definition at line 28 of file BeforeFileReplacedEvent.php.

Member Function Documentation

◆ getFile()

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

◆ getLocalFilePath()

TYPO3\CMS\Core\Resource\Event\BeforeFileReplacedEvent::getLocalFilePath ( )