FolderLinkHandler implements LinkHandlingInterface

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

Table of Contents

Interfaces

LinkHandlingInterface
Interface for classes which are transforming a tag link hrefs to records or resources basically any URLs that should not be saved directly in the database on as is basis since they might be moved, changed by admin working in backend

Properties

$baseUrn  : string
The Base URN
$resourceFactory  : ResourceFactory
The resource factory to resolve

Methods

asString()  : string
Returns a link notation to a folder
resolveHandlerData()  : array<string|int, mixed>
Get a folder object inside the array data from the string
getResourceFactory()  : ResourceFactory
Initializes the resource factory (only once)

Properties

$baseUrn

The Base URN

protected string $baseUrn = 't3://folder'

Methods

asString()

Returns a link notation to a folder

public asString(array<string|int, mixed> $parameters) : string
Parameters
$parameters : array<string|int, mixed>
Return values
string

resolveHandlerData()

Get a folder object inside the array data from the string

public resolveHandlerData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>

with the "folder" property containing a Folder object

Return values
array<string|int, mixed>

        
On this page

Search results