Ojs\ApiBundle\Controller\Admin\PostRestController::getPostAction PHP Method

getPostAction() public method

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