DatabaseRecordLinkBuilder implements TypolinkBuilderInterface

Builds a TypoLink to a database record

Table of Contents

Interfaces

TypolinkBuilderInterface
Used to generate a link to a page or file, an external URL or any other protocol in the frontend or backend.

Methods

__construct()  : mixed
buildLink()  : LinkResultInterface
getPageTsConfig()  : array<string|int, mixed>
Helper method to calculate pageTsConfig in frontend scope, we can't use BackendUtility::getPagesTSconfig() here.

Methods

public buildLink(array<string|int, mixed> $linkDetails, array<string|int, mixed> $configuration, ServerRequestInterface $request[, string $linkText = '' ]) : LinkResultInterface
Parameters
$linkDetails : array<string|int, mixed>

parsed link details by the LinkService

$configuration : array<string|int, mixed>

the TypoLink configuration array

$request : ServerRequestInterface
$linkText : string = ''

the link text

Return values
LinkResultInterface

getPageTsConfig()

Helper method to calculate pageTsConfig in frontend scope, we can't use BackendUtility::getPagesTSconfig() here.

protected getPageTsConfig(ServerRequestInterface $request) : array<string|int, mixed>
Parameters
$request : ServerRequestInterface
Return values
array<string|int, mixed>

        
On this page

Search results