Ojs\ApiBundle\Controller\Admin\ContactTypesRestController::getContacttypeAction PHP Метод

getContacttypeAction() публичный Метод

Get single Contact Type.
public getContacttypeAction ( integer $id ) : array
$id integer the contact type id
Результат array
    public function getContacttypeAction($id)
    {
        $entity = $this->getOr404($id);
        if (!$this->isGranted('VIEW', $entity)) {
            throw new AccessDeniedException();
        }
        return $entity;
    }