FluidTYPO3\Vhs\ViewHelpers\Iterator\IndexOfViewHelper::renderStatic PHP Метод

renderStatic() публичный статический Метод

Default implementation for use in compiled templates
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
    public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
    {
        $evaluation = self::assertHaystackHasNeedle($arguments['haystack'], $arguments['needle'], $arguments);
        if (false !== $evaluation) {
            return intval($evaluation);
        }
        return -1;
    }
IndexOfViewHelper