Inheritance: extends FluidTYPO3\Flux\ViewHelpers\Field\AbstractFieldViewHelper
示例#1
0
 /**
  * @param RenderingContextInterface $renderingContext
  * @param array $arguments
  * @param \Closure $renderChildrenClosure
  * @return Custom
  */
 public static function getComponent(RenderingContextInterface $renderingContext, array $arguments, \Closure $renderChildrenClosure)
 {
     /** @var Custom $component */
     $component = parent::getPreparedComponent('Custom', $renderingContext, $arguments);
     $closure = static::buildClosure($renderingContext, $arguments, $renderChildrenClosure);
     $component->setClosure($closure);
     return $component;
 }
示例#2
0
 /**
  * @return Custom
  */
 public function getComponent()
 {
     /** @var Custom $component */
     $component = parent::getComponent('Custom');
     $closure = $this->buildClosure();
     $component->setClosure($closure);
     return $component;
 }