Ojs\ApiBundle\Controller\Admin\PublisherRestController::deletePublisherAction PHP Method

deletePublisherAction() public method

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