FluidTYPO3\Vhs\Traits\ArrayConsumingViewHelperTrait::getArgumentFromArgumentsOrTagContentAndConvertToArrayStatic PHP Method

getArgumentFromArgumentsOrTagContentAndConvertToArrayStatic() protected method

Override of VhsViewHelperTrait equivalent. Does what that function does, but also ensures an array return.
protected getArgumentFromArgumentsOrTagContentAndConvertToArrayStatic ( array $arguments, string $argumentName, Closure $renderChildrenClosure ) : mixed
$arguments array
$argumentName string
$renderChildrenClosure Closure
return mixed
    protected function getArgumentFromArgumentsOrTagContentAndConvertToArrayStatic(array $arguments, $argumentName, \Closure $renderChildrenClosure)
    {
        if (!isset($arguments[$argumentName])) {
            $value = $renderChildrenClosure();
        } else {
            $value = $arguments[$argumentName];
        }
        return $this->arrayFromArrayOrTraversableOrCSV($value);
    }