Ojs\ApiBundle\Controller\Admin\PeriodRestController::getPeriodAction PHP Method

getPeriodAction() public method

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