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

Public Member Functions

 initializeArguments ()
 

Static Public Member Functions

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

Static Protected Member Functions

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

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

A ViewHelper to create links from fields supported by the link wizard

Example

{link} contains: t3://page?uid=2&arg1=val1#9 _blank some-css-class "Title containing Whitespace".

Or a legacy version from older TYPO3 versions: {link} contains: 9 _blank - "testtitle with whitespace" &X=y.

Minimal usage

::

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

Output::

Linktext

Depending on current page, routing and page path configuration.

TextWrap usage

::

<f:link.typolink parameter="123" textWrap="<span>|</span>"/>

Output::

Page title of some page wrapped in span

Depending on current page, routing and page path configuration.

Full parameter usage

::

<f:link.typolink parameter="{link}" additionalParams="&u=b" target="_blank" class="ico-class" title="some title" additionalAttributes="{type:'button'}"

Linktext </f:link.typolink>

Output::

Linktext

Depending on routing and page path configuration.

Definition at line 90 of file TypolinkViewHelper.php.

Member Function Documentation

◆ initializeArguments()

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

Initialize ViewHelper arguments

Exceptions
Exception

Definition at line 102 of file TypolinkViewHelper.php.

◆ invokeContentObjectRenderer()

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

Definition at line 154 of file TypolinkViewHelper.php.

◆ mergeTypoLinkConfiguration()

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

Merges view helper arguments with typolink parts.

Parameters
array$typoLinkConfiguration
array$arguments
Returns
‪array

Definition at line 205 of file TypolinkViewHelper.php.

◆ renderStatic()

static mixed string TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Render

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪mixed|string
Exceptions

Definition at line 129 of file TypolinkViewHelper.php.

◆ serializeTagParameters()

static TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper::serializeTagParameters ( array  $arguments)
staticprotected

Definition at line 187 of file TypolinkViewHelper.php.

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\Link\TypolinkViewHelper::$escapeOutput = false
protected

Definition at line 95 of file TypolinkViewHelper.php.