‪TYPO3CMS  11.5
TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper:

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

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

Static Protected Member Functions

static invokeContentObjectRenderer (array $arguments, string $typoLinkParameter)
 
static array mergeTypoLinkConfiguration (array $typoLinkConfiguration, array $arguments)
 

Detailed Description

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.

Definition at line 59 of file TypolinkViewHelper.php.

Member Function Documentation

◆ initializeArguments()

TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper::initializeArguments ( )

Initialize arguments

Definition at line 65 of file TypolinkViewHelper.php.

◆ invokeContentObjectRenderer()

static TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper::invokeContentObjectRenderer ( array  $arguments,
string  $typoLinkParameter 
)
staticprotected

Definition at line 98 of file TypolinkViewHelper.php.

◆ mergeTypoLinkConfiguration()

static array TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper::mergeTypoLinkConfiguration ( array  $typoLinkConfiguration,
array  $arguments 
)
staticprotected

Merges view helper arguments with typolink parts.

Parameters
array$typoLinkConfiguration
array$arguments
Returns
‪array

Definition at line 132 of file TypolinkViewHelper.php.

◆ renderStatic()

static string TYPO3\CMS\Fluid\ViewHelpers\Uri\TypolinkViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static
Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string

Definition at line 82 of file TypolinkViewHelper.php.