TypolinkViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:uri.typolink>

FinalYes

A ViewHelper to create uris from fields supported by the link wizard.

Example

{link} contains 19 - - - &X=y

Please note that due to the nature of typolink you have to provide a full set of parameters. If you use the parameter only, then target, class and title will be discarded.

Minimal usage

::

<f:uri.typolink parameter="{link}" />

/page/path/name.html?X=y

Depending on routing and page path configuration.

Full parameter usage

::

<f:uri.typolink parameter="{link}" additionalParams="&u=b" />

/page/path/name.html?X=y&u=b

Depending on routing and page path configuration.

Table of Contents

Methods

initializeArguments()  : void
renderStatic()  : string
invokeContentObjectRenderer()  : string
mergeTypoLinkConfiguration()  : array<string|int, mixed>
Merges view helper arguments with typolink parts.

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string
Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

invokeContentObjectRenderer()

protected static invokeContentObjectRenderer(array<string|int, mixed> $arguments, string $typoLinkParameter) : string
Parameters
$arguments : array<string|int, mixed>
$typoLinkParameter : string
Return values
string

mergeTypoLinkConfiguration()

Merges view helper arguments with typolink parts.

protected static mergeTypoLinkConfiguration(array<string|int, mixed> $typoLinkConfiguration, array<string|int, mixed> $arguments) : array<string|int, mixed>
Parameters
$typoLinkConfiguration : array<string|int, mixed>
$arguments : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results