PHP Class FluidTYPO3\Vhs\ViewHelpers\UnlessViewHelper

The opposite of f:if and only supporting negative matching. Related to v:or but allows more complex conditions. Is the same as writing: The thing that gets done Except without the f:else. #### Example, tag mode Warning! Something required was not present. #### Example, inline mode illustrating v:or likeness {defaultText -> v:unless(condition: originalText)} which is much the same as... {originalText -> v:or(alternative: defaultText} ...but the "unless" counterpart supports anything as condition instead of only checking "is content empty?"
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Exibir arquivo Open project: fluidtypo3/vhs

Public Methods

Method Description
render ( ) : string | null Rendering with inversion and ignoring any f:then / f:else children.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed Static rendering with inversion and ignoring any f:then / f:else children.

Method Details

render() public method

Rendering with inversion and ignoring any f:then / f:else children.
public render ( ) : string | null
return string | null

renderStatic() public static method

Static rendering with inversion and ignoring any f:then / f:else children.
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface
return mixed