Ojs\ApiBundle\Controller\Admin\ContactRestController::getContactAction PHP Method

getContactAction() public method

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