Ojs\ApiBundle\Controller\Admin\PublisherTypeRestController::getPublishertypeAction PHP Метод

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

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