Ojs\ApiBundle\Controller\Admin\IndexRestController::getIndexsAction PHP Method

getIndexsAction() public method

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