src/Kunstmaan/AdminBundle/Twig/LocaleSwitcherTwigExtension.php
public function renderWidget(\Twig_Environment $env, $locales, $route, array $parameters = array())
    {
        $template = $env->loadTemplate(
            'KunstmaanAdminBundle:LocaleSwitcherTwigExtension:widget.html.twig'
        );

        return $template->render(
            array_merge(
                $parameters,
                array(
                    'locales' => $locales,
                    'route' => $route,
                )
            )
        );
    }
public function renderWidget(\Twig_Environment $env, $locales, $route, array $parameters = array())
    {
        $template = $env->loadTemplate(
            'KunstmaanAdminBundle:LocaleSwitcherTwigExtension:widget.html.twig'
        );

        return $template->render(
            array_merge(
                $parameters,
                array(
                    'locales' => $locales,
                    'route' => $route,
                )
            )
        );
    }
public function renderWidget ( \ Twig_Environment $ env , $ locales , $ route , array $ parameters = array ( ) ) { $ template = $ env -> loadTemplate ( 'KunstmaanAdminBundle:LocaleSwitcherTwigExtension:widget.html.twig' ) ; return $ template -> render ( array_merge ( $ parameters , array ( 'locales' => $ locales , 'route' => $ route , ) ) ) ; }
Render locale switcher widget.

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

@return string
Render locale switcher widget .