Ojs\ApiBundle\Controller\Admin\InstitutionRestController::getInstitutionAction PHP Method

getInstitutionAction() public method

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