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

Public Member Functions

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

Protected Member Functions

ResourceFactory getResourceFactory ()
 

Protected Attributes

string $baseUrn = 't3://folder'
 
TYPO3 CMS Core Resource 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 folders can be moved in the fileadmin without breaking folder links in the frontend/backend

Definition at line 30 of file FolderLinkHandler.php.

Member Function Documentation

◆ asString()

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

Returns a link notation to a folder

Parameters
array$parameters
Returns
‪string

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 49 of file FolderLinkHandler.php.

◆ getResourceFactory()

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

Initializes the resource factory (only once)

Returns
‪ResourceFactory

Definition at line 79 of file FolderLinkHandler.php.

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

Referenced by TYPO3\CMS\Core\LinkHandling\FolderLinkHandler\resolveHandlerData().

◆ resolveHandlerData()

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

Get a folder object inside the array data from the string

Parameters
array$data‪with the "folder" property containing a Folder object
Returns
‪array

Implements TYPO3\CMS\Core\LinkHandling\LinkHandlingInterface.

Definition at line 63 of file FolderLinkHandler.php.

References TYPO3\CMS\Core\Resource\ResourceFactory\getFolderObjectFromCombinedIdentifier(), and TYPO3\CMS\Core\LinkHandling\FolderLinkHandler\getResourceFactory().

Member Data Documentation

◆ $baseUrn

string TYPO3\CMS\Core\LinkHandling\FolderLinkHandler::$baseUrn = 't3://folder'
protected

The Base URN

Definition at line 35 of file FolderLinkHandler.php.

◆ $resourceFactory

TYPO3 CMS Core Resource ResourceFactory TYPO3\CMS\Core\LinkHandling\FolderLinkHandler::$resourceFactory
protected

The resource factory to resolve

Definition at line 40 of file FolderLinkHandler.php.

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