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

Table of Contents

Constants

DEFAULT_SCHEME  = 'http'

Methods

asString()  : string
Returns a string interpretation of the link href query from objects, something like
resolveHandlerData()  : array<string|int, mixed>
Returns an array with data interpretation of the link href from parsed query parameters of urn representation.

Constants

DEFAULT_SCHEME

public non-empty-string DEFAULT_SCHEME = 'http'

will be used for links without a scheme if no default scheme is configured

Internal

Do not use directly; please use UrlLinkHandler::getDefaultScheme() instead to also take the configured default scheme into account.

Methods

asString()

Returns a string interpretation of the link href query from objects, something like

public asString(array<string|int, mixed> $parameters) : string
  • t3://page?uid=23&my=value#cool
  • https://www.typo3.org/
  • t3://file?uid=13
  • t3://folder?storage=2&identifier=/my/folder/
  • mailto:mac@safe.com

array of data -> string

Parameters
$parameters : array<string|int, mixed>
Return values
string

resolveHandlerData()

Returns an array with data interpretation of the link href from parsed query parameters of urn representation.

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

array of strings -> array of data

Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results