TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Nl2brViewHelper Class Reference
Inheritance diagram for Nl2brViewHelper:
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 Public Member Functions

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

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

Wrapper for PHPs nl2br function.

See also
http://www.php.net/manual/en/function.nl2br.php

= Examples =

<f:format.nl2br>{text_with_linebreaks}</f:format.nl2br> <output> text with line breaks replaced by
</output>

{text_with_linebreaks -> f:format.nl2br()} <output> text with line breaks replaced by
</output>

Definition at line 41 of file Nl2brViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize arguments.

Exceptions
TYPO3Fluid

Definition at line 55 of file Nl2brViewHelper.php.

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

Applies nl2br() on the specified value.

Parameters
array$arguments
\Closure$renderChildrenClosure
\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface$renderingContext
Returns
string

Definition at line 69 of file Nl2brViewHelper.php.

Member Data Documentation

$escapeOutput = false
protected

Definition at line 48 of file Nl2brViewHelper.php.