src/Kunstmaan/AdminBundle/Twig/MultiDomainAdminTwigExtension.php
public function renderWidget(Twig_Environment $env, $route, array $parameters = [])
    {
        $template = $env->loadTemplate(
            '@KunstmaanAdmin/MultiDomainAdminTwigExtension/widget.html.twig'
        );

        return $template->render(
            \array_merge(
                $parameters, [
                    'hosts' => $this->getAdminDomainHosts(),
                    'route' => $route,
                ]
            )
        );
    }
public function renderWidget(Twig_Environment $env, $route, array $parameters = [])
    {
        $template = $env->loadTemplate(
            '@KunstmaanAdmin/MultiDomainAdminTwigExtension/widget.html.twig'
        );

        return $template->render(
            \array_merge(
                $parameters, [
                    'hosts' => $this->getAdminDomainHosts(),
                    'route' => $route,
                ]
            )
        );
    }
public function renderWidget ( Twig_Environment $ env , $ route , array $ parameters = [ ] ) { $ template = $ env -> loadTemplate ( '@KunstmaanAdmin/MultiDomainAdminTwigExtension/widget.html.twig' ) ; return $ template -> render ( \ array_merge ( $ parameters , [ 'hosts' => $ this -> getAdminDomainHosts ( ) , 'route' => $ route , ] ) ) ; }
Render multidomain switcher widget.

@param Twig_Environment $env
@param string           $route      The route
@param array            $parameters The route parameters

@return string
Render multidomain switcher widget .