Ojs\ApiBundle\Controller\Journal\JournalBoardRestController::deleteBoardAction PHP Method

deleteBoardAction() public method

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