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
__construct()
public
__construct(TcaSchemaFactory $schemaFactory, FrontendInterface $runtimeCache, TypoLinkCodecService $typoLinkCodecService) : mixed
Parameters
- $schemaFactory : TcaSchemaFactory
- $runtimeCache : FrontendInterface
- $typoLinkCodecService : TypoLinkCodecService
buildLink()
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
LinkResultInterfacegetPageTsConfig()
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