NetteAddons\HelperLoader::__invoke PHP Method

__invoke() public method

public __invoke ( $helper ) : callable | null
return callable | null
    public function __invoke($helper)
    {
        if (array_key_exists($helper, $this->helpers)) {
            return $this->helpers[$helper];
        }
    }