PHP Class Neos\FluidAdaptor\ViewHelpers\Format\CropViewHelper

= Examples = This is some very long text This is so... This is some very long text This is some very [more] John Doe John Doe WARNING: This tag does NOT handle tags currently. WARNING: This tag doesn't care about multibyte charsets currently.
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeChildren boolean

Public Methods

Method Description
render ( integer $maxCharacters, string $append = '...', string $value = null ) : string Render the cropped text
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string

Method Details

render() public method

Render the cropped text
public render ( integer $maxCharacters, string $append = '...', string $value = null ) : string
$maxCharacters integer Place where to truncate the string
$append string What to append, if truncation happened
$value string The input value which should be cropped. If not set, the evaluated contents of the child nodes will be used
return string cropped text

renderStatic() public static method

public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
return string

Property Details

$escapeChildren protected property

protected bool $escapeChildren
return boolean