Ojs\ApiBundle\Controller\Journal\JournalArticleRestController::getArticleAction PHP Method

getArticleAction() public method

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