Takes a property (dotted path supported) and renders the then-child if the property at the given path has any
Author: Claus Due (claus@namelesscoder.net)
Inheritance: extends TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper
Ejemplo n.º 1
0
 /**
  * Default implementation for use in compiled templates
  *
  * @param array $arguments
  * @param \Closure $renderChildrenClosure
  * @param RenderingContextInterface $renderingContext
  * @return mixed
  */
 public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 {
     $arguments['validatorName'] = 'NotEmpty';
     return parent::renderStatic($arguments, $renderChildrenClosure, $renderingContext);
 }
 /**
  * Render
  *
  * Renders the then-child if the property at $property of the
  * object at $object (or the associated form object if $object
  * is not specified)
  *
  * @param string $property The property name, dotted path supported, to determine required
  * @param DomainObjectInterface $object Optional object - if not specified, grabs the associated form object
  * @return string
  */
 public function render($property, DomainObjectInterface $object = NULL)
 {
     $validatorName = 'NotEmpty';
     return parent::render($property, $validatorName, $object);
 }