Ojs\ApiBundle\Controller\Admin\PageRestController::getPageAction PHP Method

getPageAction() public method

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