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
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$escapeChildren boolean

Méthodes publiques

Méthode 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 méthode

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
Résultat string cropped text

renderStatic() public static méthode

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

Property Details

$escapeChildren protected_oe property

protected bool $escapeChildren
Résultat boolean