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?"
ファイルを表示
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
Rendering with inversion and ignoring any f:then / f:else children.
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 |
|