Ojs\ApiBundle\Controller\Journal\JournalBoardRestController::deleteBoardAction PHP 메소드

deleteBoardAction() 공개 메소드

public deleteBoardAction ( $id ) : Response
$id
리턴 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, []);
    }