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
- isRelativeToCurrentScript() : bool
- setPublicUrl() : void
Methods
__construct()
public
__construct(ResourceInterface $resource, ResourceStorage $storage, DriverInterface $driver[, bool $relativeToCurrentScript = false ]) : mixed
Parameters
- $resource : ResourceInterface
- $storage : ResourceStorage
- $driver : DriverInterface
- $relativeToCurrentScript : bool = false
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
ResourceStorageisRelativeToCurrentScript()
public
isRelativeToCurrentScript() : bool
since TYPO3 v11, will be removed in TYPO3 v12.0
Return values
boolsetPublicUrl()
public
setPublicUrl(string|null $publicUrl) : void
Parameters
- $publicUrl : string|null