PHP Класс 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?"
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
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. |
|
Описание методов
Rendering with inversion and ignoring any f:then / f:else children.
renderStatic()
публичный статический Метод
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 |
|
Результат |
mixed |
|