Ojs\ApiBundle\Controller\Journal\JournalIssueFileRestController::getFileAction PHP Method

getFileAction() public method

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