Ojs\CoreBundle\Controller\OjsController::throw404IfNotFound PHP Метод

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

protected throw404IfNotFound ( mixed $entity, string $message = 'Not Found' ) : boolean
$entity mixed
$message string custom not found message
Результат boolean
    protected function throw404IfNotFound($entity, $message = 'Not Found')
    {
        if (!$entity) {
            throw $this->createNotFoundException($this->get('translator')->trans($message));
        }
        return true;
    }