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

Public Member Functions

 __construct (private string $fileName, private readonly Folder $targetFolder, private readonly ResourceStorage $storage, private readonly DriverInterface $driver)
 
 getFileName ()
 
 setFileName (string $fileName)
 
 getTargetFolder ()
 
 getStorage ()
 
 getDriver ()
 

Detailed Description

This event is fired once an index was just added to the database (= indexed), so it is possible to modify the file name, and name the files according to naming conventions of a specific project.

Definition at line 28 of file SanitizeFileNameEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::__construct ( private string  $fileName,
private readonly Folder  $targetFolder,
private readonly ResourceStorage  $storage,
private readonly DriverInterface  $driver 
)

Definition at line 30 of file SanitizeFileNameEvent.php.

Member Function Documentation

◆ getDriver()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::getDriver ( )

Definition at line 57 of file SanitizeFileNameEvent.php.

◆ getFileName()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::getFileName ( )

Definition at line 37 of file SanitizeFileNameEvent.php.

◆ getStorage()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::getStorage ( )

Definition at line 52 of file SanitizeFileNameEvent.php.

◆ getTargetFolder()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::getTargetFolder ( )

Definition at line 47 of file SanitizeFileNameEvent.php.

◆ setFileName()

TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent::setFileName ( string  $fileName)

Definition at line 42 of file SanitizeFileNameEvent.php.