SanitizeFileNameEvent

FinalYes

This event is fired after a file name has been sanitized and before a file is added to FAL. Listeners can use this event to modify the file name, and name the file 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

getFileName()

public getFileName() : string
Return values
string

setFileName()

public setFileName(string $fileName) : void
Parameters
$fileName : string

        
On this page

Search results