FluidTYPO3\Vhs\ViewHelpers\CallViewHelper::render PHP Méthode

render() public méthode

public render ( string $method, object $object = null, array $arguments = [] ) : mixed
$method string
$object object
$arguments array
Résultat mixed
    public function render($method, $object = null, array $arguments = [])
    {
        if (null === $object) {
            $object = $this->renderChildren();
            if (false === is_object($object)) {
                throw new \RuntimeException('Using v:call requires an object either as "object" attribute, tag content or inline argument', 1356849652);
            }
        }
        if (false === method_exists($object, $method)) {
            throw new \RuntimeException('Method "' . $method . '" does not exist on object of type ' . get_class($object), 1356834755);
        }
        return call_user_func_array(array($object, $method), $arguments);
    }
CallViewHelper