/**
  * The delete action
  *
  * @param int $id
  *
  * @Route("{menuid}/items/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaanmenubundle_admin_menuitem_delete")
  * @Method({"GET", "POST"})
  *
  * @return array
  */
 public function deleteAction(Request $request, $menuid, $id)
 {
     $result = $this->checkMenuLocale($request, $menuid, 'kunstmaanmenubundle_admin_menuitem_delete', $id);
     if ($result) {
         return $result;
     }
     return parent::doDeleteAction($this->getAdminListConfigurator($request, $menuid), $id, $request);
 }
 /**
  * @Route("/{id}/delete", requirements={"id" = "\d+"}, name="kunstmaantaggingbundle_admin_tag_delete")
  * @Method({"GET", "POST"})
  * @Template("KunstmaanAdminListBundle:Default:delete.html.twig")
  */
 public function deleteAction(Request $request, $id)
 {
     return parent::doDeleteAction($this->getAdminListConfigurator(), $id, $request);
 }
 /**
  * The export action
  *
  * @param Request $request
  * @param string  $_format
  *
  * @return array
  * @Route("/export.{_format}", requirements={"_format" = "csv|xlsx"},
  *                             name="kunstmaantaggroupbundle_admin_taggroup_export")
  * @Method({"GET", "POST"})
  */
 public function exportAction(Request $request, $_format)
 {
     return parent::doExportAction($this->getAdminListConfigurator(), $_format, $request);
 }
 /**
  * The add action
  *
  * @Route("/add",  name="kunstmaanleadgenerationbundle_admin_popup_abstractpopup_add")
  * @Method({"GET", "POST"})
  *
  * @return array
  */
 public function addAction(Request $request)
 {
     $type = $request->get('type');
     return parent::doAddAction($this->getAdminListConfigurator(), $type, $request);
 }
 /**
  * @Route("/", name="kunstmaanmenubundle_admin_menu")
  *
  * @param Request $request
  *
  * @return array
  */
 public function indexAction(Request $request)
 {
     // Make sure we have a menu for each possible locale
     $this->get('kunstmaan_menu.menu.service')->makeSureMenusExist();
     return parent::doIndexAction($this->getAdminListConfigurator($request), $request);
 }