Pagekit\View\View::__call PHP Method

__call() public method

Gets a helper or calls the helpers invoke method.
public __call ( string $name, array $args ) : mixed
$name string
$args array
return mixed
    public function __call($name, $args)
    {
        if (!isset($this->helpers[$name])) {
            throw new \InvalidArgumentException(sprintf('Undefined helper "%s"', $name));
        }
        return $args ? call_user_func_array($this->helpers[$name], $args) : $this->helpers[$name];
    }