GeneratePublicUrlForResourceEvent
FinalYes
This event is fired before TYPO3 FAL's native URL generation for a Resource is instantiated.
This allows for listeners to create custom links to certain files (e.g. restrictions) for creating authorized deeplinks.
Table of Contents
Methods
- __construct() : mixed
- getDriver() : DriverInterface
- getPublicUrl() : string|null
- getResource() : ResourceInterface
- getStorage() : ResourceStorage
- setPublicUrl() : void
Methods
__construct()
public
__construct(ResourceInterface $resource, ResourceStorage $storage, DriverInterface $driver) : mixed
Parameters
- $resource : ResourceInterface
- $storage : ResourceStorage
- $driver : DriverInterface
getDriver()
public
getDriver() : DriverInterface
Return values
DriverInterfacegetPublicUrl()
public
getPublicUrl() : string|null
Return values
string|nullgetResource()
public
getResource() : ResourceInterface
Return values
ResourceInterfacegetStorage()
public
getStorage() : ResourceStorage
Return values
ResourceStoragesetPublicUrl()
public
setPublicUrl(string|null $publicUrl) : void
Parameters
- $publicUrl : string|null