TypolinkViewHelper extends AbstractViewHelper uses CompileWithRenderStatic
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:uri.typolink>
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
stringinvokeContentObjectRenderer()
protected
static invokeContentObjectRenderer(array<string|int, mixed> $arguments, string $typoLinkParameter) : string
Parameters
- $arguments : array<string|int, mixed>
- $typoLinkParameter : string
Return values
stringmergeTypoLinkConfiguration()
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>