‪TYPO3CMS  ‪main
TYPO3\CMS\Core\LinkHandling\FileLinkHandler Class Reference
Inheritance diagram for TYPO3\CMS\Core\LinkHandling\FileLinkHandler:
TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface

Public Member Functions

 asString (array $parameters)
 
 resolveHandlerData (array $data)
 

Protected Member Functions

 resolveFile (array $data)
 
 getResourceFactory ()
 

Protected Attributes

string $baseUrn = 't3://file'
 
ResourceFactory $resourceFactory
 

Additional Inherited Members

Detailed Description

Interface for classes which are transforming a tag link hrefs for folders, in order to use FAL to store them in database, which means that files can be moved in the fileadmin without breaking file links in the frontend/backend

Definition at line 31 of file FileLinkHandler.php.

Member Function Documentation

◆ asString()

TYPO3\CMS\Core\LinkHandling\FileLinkHandler::asString ( array  $parameters)

Returns the link to a file as a string

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 46 of file FileLinkHandler.php.

References TYPO3\CMS\Webhooks\Message\$identifier, and TYPO3\CMS\Webhooks\Message\$uid.

◆ getResourceFactory()

TYPO3\CMS\Core\LinkHandling\FileLinkHandler::getResourceFactory ( )
protected

Initializes the resource factory (only once)

Definition at line 109 of file FileLinkHandler.php.

Referenced by TYPO3\CMS\Core\LinkHandling\FileLinkHandler\resolveFile().

◆ resolveFile()

TYPO3\CMS\Core\LinkHandling\FileLinkHandler::resolveFile ( array  $data)
protected

◆ resolveHandlerData()

TYPO3\CMS\Core\LinkHandling\FileLinkHandler::resolveHandlerData ( array  $data)

Get a file object inside the array data from the string

Parameters
array$data‪with the "file" property containing a File object
Exceptions

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 71 of file FileLinkHandler.php.

References TYPO3\CMS\Core\LinkHandling\FileLinkHandler\resolveFile().

Member Data Documentation

◆ $baseUrn

string TYPO3\CMS\Core\LinkHandling\FileLinkHandler::$baseUrn = 't3://file'
protected

The Base URN

Definition at line 36 of file FileLinkHandler.php.

◆ $resourceFactory

ResourceFactory TYPO3\CMS\Core\LinkHandling\FileLinkHandler::$resourceFactory
protected

The resource factory object to resolve file objects

Definition at line 41 of file FileLinkHandler.php.