TypolinkViewHelper

final class \TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper

Extends
AbstractViewHelper
Uses
CompileWithRenderStatic

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
Merges view helper arguments with typolink parts.

Methods

initializeArguments()

public initializeArguments() : void

renderStatic()

public static renderStatic(array $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Parameters

$arguments : array
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface

Return values

string

invokeContentObjectRenderer()

protected static invokeContentObjectRenderer(array $arguments, string $typoLinkParameter) : string

Parameters

$arguments : array
$typoLinkParameter : string

Return values

string

mergeTypoLinkConfiguration()

Merges view helper arguments with typolink parts.

protected static mergeTypoLinkConfiguration(array $typoLinkConfiguration, array $arguments) : array

Parameters

$typoLinkConfiguration : array
$arguments : array

Return values

array
On this page