eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway\ExceptionConversion::find PHP Method

find() public method

Returns total count and data for all Locations satisfying the parameters.
public find ( eZ\Publish\API\Repository\Values\Content\Query\Criterion $criterion, integer $offset, integer | null $limit = null, array $sortClauses = null ) : mixed[][]
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$offset integer
$limit integer | null
$sortClauses array
return mixed[][]
    public function find(Criterion $criterion, $offset = 0, $limit = null, array $sortClauses = null)
    {
        try {
            return $this->innerGateway->find($criterion, $offset, $limit, $sortClauses);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }