src/Renderer/TwigRenderer.php
public function plugin($name, array $options = null)
    {
        $helper = $this->getTwigHelpers()->setRenderer($this);

        if ($helper->has($name)) {
            return $helper->get($name, $options);
        }

        return $this->getHelperPluginManager()->get($name, $options);
    }
public function plugin($name, array $options = null)
    {
        $helper = $this->getTwigHelpers()->setRenderer($this);

        if ($helper->has($name)) {
            return $helper->get($name, $options);
        }

        return $this->getHelperPluginManager()->get($name, $options);
    }
Get plugin instance

@param  string     $name    Name of plugin to return
@param  null|array $options Options to pass to plugin constructor (if not already instantiated)

@return AbstractHelper|callable