Ojs\ApiBundle\Controller\Admin\JournalRestController::deleteJournalAction PHP Method

deleteJournalAction() public method

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