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

Public Member Functions

 __construct (private readonly ResourceInterface $resource, private readonly ResourceStorage $storage, private readonly DriverInterface $driver)
 getResource ()
 getStorage ()
 getDriver ()
 getPublicUrl ()
 setPublicUrl (?string $publicUrl)

Private Attributes

string $publicUrl = null

Detailed Description

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.

Definition at line 30 of file GeneratePublicUrlForResourceEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent::__construct ( private readonly ResourceInterface  $resource,
private readonly ResourceStorage  $storage,
private readonly DriverInterface  $driver 

Definition at line 34 of file GeneratePublicUrlForResourceEvent.php.

Member Function Documentation

◆ getDriver()

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

Definition at line 50 of file GeneratePublicUrlForResourceEvent.php.

◆ getPublicUrl()

TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent::getPublicUrl ( )

◆ getResource()

◆ getStorage()

◆ setPublicUrl()

Member Data Documentation

◆ $publicUrl

string TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent::$publicUrl = null