PHP Class FluidTYPO3\Vhs\ViewHelpers\Format\AppendViewHelper

Appends a string after another string. Although this task is very easily done in standard Fluid - i.e. {subject}{add} - this ViewHelper makes advanced chained inline processing possible: {text -> v:format.eliminate(strings: 'foo,bar') -> v:format.append(add: ' - my foo and bar are the only ones in this text.') -> f:format.html()} Makes no sense used as tag based ViewHelper: {subject} {subject} {f:translate(key: 're')}{subject} In other words: use this only when you do not have the option of simply using {subject}{add}, i.e. in complex inline statements used as attribute values on other ViewHelpers (where tag usage is undesirable).
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper
Datei anzeigen Open project: fluidtypo3/vhs

Public Methods

Method Description
render ( string $add, string $subject = null ) : string

Method Details

render() public method

public render ( string $add, string $subject = null ) : string
$add string
$subject string
return string