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

Public Member Functions

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

Private Attributes

FileInterface $file
 
string $localFilePath
 

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 ( FileInterface  $file,
string  $localFilePath 
)

Member Function Documentation

◆ getFile()

◆ getLocalFilePath()

Member Data Documentation

◆ $file

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

◆ $localFilePath

string TYPO3\CMS\Core\Resource\Event\BeforeFileReplacedEvent::$localFilePath
private