eZ\Publish\Core\Search\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, array $languageFilter = [], boolean $doCount = true ) : mixed[][]
$criterion eZ\Publish\API\Repository\Values\Content\Query\Criterion
$offset integer
$limit integer | null
$sortClauses array
$languageFilter array
$doCount boolean
return mixed[][]
    public function find(Criterion $criterion, $offset = 0, $limit = null, array $sortClauses = null, array $languageFilter = array(), $doCount = true)
    {
        try {
            return $this->innerGateway->find($criterion, $offset, $limit, $sortClauses, $languageFilter, $doCount);
        } catch (DBALException $e) {
            throw new RuntimeException('Database error', 0, $e);
        } catch (PDOException $e) {
            throw new RuntimeException('Database error', 0, $e);
        }
    }
ExceptionConversion