src/Kunstmaan/AdminBundle/Twig/AdminPermissionsTwigExtension.php
public function renderWidget(Twig_Environment $env, PermissionAdmin $permissionAdmin, FormView $form, array $parameters = array())
    {
        $template = $env->loadTemplate('KunstmaanAdminBundle:PermissionsAdminTwigExtension:widget.html.twig');

        return $template->render(array_merge(array(
            'form' => $form,
            'permissionadmin' => $permissionAdmin,
            'recursiveSupport' => true,
        ), $parameters));
    }
public function renderWidget(Twig_Environment $env, PermissionAdmin $permissionAdmin, FormView $form, array $parameters = array())
    {
        $template = $env->loadTemplate('KunstmaanAdminBundle:PermissionsAdminTwigExtension:widget.html.twig');

        return $template->render(array_merge(array(
            'form' => $form,
            'permissionadmin' => $permissionAdmin,
            'recursiveSupport' => true,
        ), $parameters));
    }
public function renderWidget ( Twig_Environment $ env , PermissionAdmin $ permissionAdmin , FormView $ form , array $ parameters = array ( ) ) { $ template = $ env -> loadTemplate ( 'KunstmaanAdminBundle:PermissionsAdminTwigExtension:widget.html.twig' ) ; return $ template -> render ( array_merge ( array ( 'form' => $ form , 'permissionadmin' => $ permissionAdmin , 'recursiveSupport' => true , ) , $ parameters ) ) ; }
Renders the permission admin widget.

@param \Twig_Environment $env
@param PermissionAdmin   $permissionAdmin The permission admin
@param FormView          $form            The form
@param array             $parameters      Extra parameters

@return string
Renders the permission admin widget .