public function renderWidget(Twig_Environment $env, AdminList $view, $basepath, array $urlparams = [], array $addparams = [])
    {
        $filterBuilder = $view->getFilterBuilder();

        return $env->render(
            'KunstmaanAdminListBundle:AdminListTwigExtension:widget.html.twig',
            [
                'filter' => $filterBuilder,
                'basepath' => $basepath,
                'addparams' => $addparams,
                'extraparams' => $urlparams,
                'adminlist' => $view,
            ]
        );
    }