Ojs\ApiBundle\Controller\Admin\ArticleTypeRestController::deleteArticletypeAction PHP Method

deleteArticletypeAction() public method

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