Ojs\ApiBundle\Controller\Admin\InstitutionRestController::deleteInstitutionAction PHP Method

deleteInstitutionAction() public method

public deleteInstitutionAction ( $id ) : Response
$id
return Response
    public function deleteInstitutionAction($id)
    {
        $entity = $this->getOr404($id);
        if (!$this->isGranted('DELETE', $entity)) {
            throw new AccessDeniedException();
        }
        $this->container->get('ojs_api.institution.handler')->delete($entity);
        return $this->view(null, Codes::HTTP_NO_CONTENT, []);
    }