Ojs\ApiBundle\Controller\Admin\PageRestController::getOr404 PHP Метод

getOr404() защищенный Метод

Fetch a Page or throw an 404 Exception.
protected getOr404 ( mixed $id ) : AdminPage
$id mixed
Результат Ojs\AdminBundle\Entity\AdminPage
    protected function getOr404($id)
    {
        if (!($entity = $this->container->get('ojs_api.page.handler')->get($id))) {
            throw new NotFoundHttpException(sprintf('The resource \'%s\' was not found.', $id));
        }
        return $entity;
    }