Ojs\ApiBundle\Controller\Admin\SubjectRestController::getSubjectAction PHP Method

getSubjectAction() public method

Get single Subject.
public getSubjectAction ( integer $id ) : array
$id integer the Subject id
return array
    public function getSubjectAction($id)
    {
        $entity = $this->getOr404($id);
        if (!$this->isGranted('VIEW', $entity)) {
            throw new AccessDeniedException();
        }
        return $entity;
    }