Ojs\ApiBundle\Controller\Admin\ArticleTypeRestController::getArticletypeAction PHP Method

getArticletypeAction() public method

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