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

getAuthorAction() public method

Get single ArticleAuthor.
public getAuthorAction ( integer $id ) : array
$id integer the ArticleAuthor id
return array
    public function getAuthorAction($id)
    {
        $entity = $this->getOr404($id);
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('VIEW', $journal, 'articles')) {
            throw new AccessDeniedException();
        }
        return $entity;
    }