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

Public Member Functions

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

Protected Member Functions

FileInterface null resolveFile (array $data)
 
ResourceFactory 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()

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

Returns the link to a file as a string

Parameters
array$parameters
Returns
‪string

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 49 of file FileLinkHandler.php.

◆ getResourceFactory()

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

Initializes the resource factory (only once)

Returns
‪ResourceFactory

Definition at line 117 of file FileLinkHandler.php.

References TYPO3\CMS\Core\LinkHandling\FileLinkHandler\$resourceFactory.

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

◆ resolveFile()

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

◆ resolveHandlerData()

array 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
Returns
‪array
Exceptions

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 75 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.

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