PHP Neos\FluidAdaptor\Core\ViewHelper AbstractConditionViewHelper - 1 пример найден. Это лучшие примеры PHP кода для Neos\FluidAdaptor\Core\ViewHelper\AbstractConditionViewHelper, полученные из open source проектов. Вы можете ставить оценку каждому примеру, чтобы помочь нам улучшить качество примеров.
См. также:
Neos\FluidAdaptor\Core\Parser\SyntaxTree\ViewHelperNode::convertArgumentValue() to find see how boolean arguments are evaluated
= Usage =
To create a custom Condition ViewHelper, you need to subclass this class, and
implement your own render() method. Inside there, you should call $this->renderThenChild()
if the condition evaluated to TRUE, and $this->renderElseChild() if the condition evaluated
to FALSE.
Every Condition ViewHelper has a "then" and "else" argument, so it can be used like:
<[aConditionViewHelperName] .... then="condition true" else="condition false" />,
or as well use the "then" and "else" child nodes.
См. также:
Neos\FluidAdaptor\ViewHelpers\IfViewHelper for a more detailed explanation and a simple usage example.
Make sure to NOT OVERRIDE the constructor.