public function getCollection(Request $request, $bas_id)
    {
        $collection = \collection::getByBaseId($this->app, $bas_id);

        $admins = [];

        if ($this->getAclForUser()->has_right_on_base($bas_id, \ACL::COLL_MANAGE)) {
            $query = $this->createUserQuery();
            $admins = $query->on_base_ids([$bas_id])
                ->who_have_right([\ACL::ORDER_MASTER])
                ->include_templates(true)
                ->execute()
                ->get_results();
        }

        switch ($errorMsg = $request->query->get('error')) {
            case 'file-error':
                $errorMsg = $this->app->trans('Error while sending the file');
                break;
            case 'file-invalid':
                $errorMsg = $this->app->trans('Invalid file format');
                break;
            case 'file-file-too-big':
                $errorMsg = $this->app->trans('The file is too big');
                break;
            case 'collection-not-empty':
                $errorMsg = $this->app->trans('Empty the collection before removing');
                break;
        }

        return $this->render('admin/collection/collection.html.twig', [
            'collection' => $collection,
            'admins'     => $admins,
            'errorMsg'   => $errorMsg,
            'reloadTree' => $request->query->get('reload-tree') === '1'
        ]);
    }