UrlLinkHandler

class \TYPO3\CMS\Core\LinkHandling\UrlLinkHandler

Implements
LinkHandlingInterface

Resolves URLs (simple, no magic needed)

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

Methods

asString()  : string
Returns the URL as given
getDefaultScheme()  : non-empty-string
Returns the scheme (e.g. `http`) to be used for links with URLs without a scheme, e.g., for `www.example.com`.
resolveHandlerData()  : array
Returns the URL as is
addHttpSchemeAsFallback()  : string
Ensures that a scheme is always added, if www.typo3.org was added previously.

Methods

asString()

Returns the URL as given

public asString(array $parameters) : string

Parameters

$parameters : array

Return values

string

getDefaultScheme()

Returns the scheme (e.g. `http`) to be used for links with URLs without a scheme, e.g., for `www.example.com`.

public static getDefaultScheme() : non-empty-string

Return values

non-empty-string

resolveHandlerData()

Returns the URL as is

public resolveHandlerData(array $data) : array

Parameters

$data : array

(needs 'url') inside

Return values

array

addHttpSchemeAsFallback()

Ensures that a scheme is always added, if www.typo3.org was added previously.

protected addHttpSchemeAsFallback(string $url) : string

Parameters

$url : string

the URL

Return values

string
On this page