Sulu\Bundle\ResourceBundle\Controller\FilterController::deleteAction PHP Method

deleteAction() public method

Delete an filter with the given id.
public deleteAction ( integer $id ) : Response
$id integer the attribute id
return Symfony\Component\HttpFoundation\Response
    public function deleteAction($id)
    {
        try {
            $this->getManager()->delete($id);
            $view = $this->view($id, 204);
        } catch (FilterNotFoundException $exc) {
            $exception = new EntityNotFoundException($exc->getEntityName(), $exc->getId());
            $view = $this->view($exception->toArray(), 404);
        }
        return $this->handleView($view);
    }