Ojs\ApiBundle\Controller\Journal\JournalArticleAuthorRestController::deleteAuthorAction PHP Method

deleteAuthorAction() public method

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