SanitizeFileNameEvent
FinalYes
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.
Table of Contents
Methods
- __construct() : mixed
- getDriver() : DriverInterface
- getFileName() : string
- getStorage() : ResourceStorage
- getTargetFolder() : Folder
- setFileName() : void
Methods
__construct()
public
__construct(string $fileName, Folder $targetFolder, ResourceStorage $storage, DriverInterface $driver) : mixed
Parameters
- $fileName : string
- $targetFolder : Folder
- $storage : ResourceStorage
- $driver : DriverInterface
getDriver()
public
getDriver() : DriverInterface
Return values
DriverInterfacegetFileName()
public
getFileName() : string
Return values
stringgetStorage()
public
getStorage() : ResourceStorage
Return values
ResourceStoragegetTargetFolder()
public
getTargetFolder() : Folder
Return values
FoldersetFileName()
public
setFileName(string $fileName) : void
Parameters
- $fileName : string