Ojs\ApiBundle\Controller\Journal\JournalSectionRestController::getSectionAction PHP Method

getSectionAction() public method

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