TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
TypolinkViewHelper Class Reference
Inheritance diagram for TypolinkViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Protected Member Functions

static createTypolinkParameterArrayFromArguments ($parameter, $target= '', $class= '', $title= '', $additionalParams= '')
 

Protected Attributes

 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

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

== Example ==

{link} contains "19 _blank - "testtitle with whitespace" &X=y"

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

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

Definition at line 54 of file Link/TypolinkViewHelper.php.

Member Function Documentation

static createTypolinkParameterArrayFromArguments (   $parameter,
  $target = '',
  $class = '',
  $title = '',
  $additionalParams = '' 
)
staticprotected

Transforms ViewHelper arguments to typo3link.parameters.typoscript option as array.

Parameters
string$parameterExample: 19 _blank - "testtitle \"with whitespace"" &X=y
string$target
string$class
string$title
string$additionalParams
Returns
string The final TypoLink string

Definition at line 140 of file Link/TypolinkViewHelper.php.

References GeneralUtility\makeInstance().

initializeArguments ( )

Initialize ViewHelper arguments

Exceptions
Exception

Definition at line 68 of file Link/TypolinkViewHelper.php.

Member Data Documentation

$escapeOutput = false
protected

Definition at line 61 of file Link/TypolinkViewHelper.php.