/** * @param $id */ public function handleDelete($id) { $this->pagesRepository->delete($id); if (!$this->isAjax()) { $this->redirect('default'); } $this->redrawControl(); }