protected function searchChildrenLocations(APILocation $location, $offset = 0, $limit = -1, array $prioritizedLanguages = null)
    {
        $query = new LocationQuery([
            'filter' => new Criterion\ParentLocationId($location->id),
            'offset' => $offset >= 0 ? (int)$offset : 0,
            'limit' => $limit >= 0 ? (int)$limit : null,
            'sortClauses' => $location->getSortClauses(),
        ]);

        return $this->repository->getSearchService()->findLocations($query, ['languages' => $prioritizedLanguages]);
    }
protected function searchChildrenLocations(APILocation $location, $offset = 0, $limit = -1, array $prioritizedLanguages = null)
    {
        $query = new LocationQuery([
            'filter' => new Criterion\ParentLocationId($location->id),
            'offset' => $offset >= 0 ? (int)$offset : 0,
            'limit' => $limit >= 0 ? (int)$limit : null,
            'sortClauses' => $location->getSortClauses(),
        ]);

        return $this->repository->getSearchService()->findLocations($query, ['languages' => $prioritizedLanguages]);
    }
protected function searchChildrenLocations ( APILocation $ location , $ offset = 0 , $ limit = - 1 , array $ prioritizedLanguages = null ) { $ query = new LocationQuery ( [ 'filter' => new Criterion \ ParentLocationId ( $ location -> id ) , 'offset' => $ offset >= 0 ? ( int ) $ offset : 0 , 'limit' => $ limit >= 0 ? ( int ) $ limit : null , 'sortClauses' => $ location -> getSortClauses ( ) , ] ) ; return $ this -> repository -> getSearchService ( ) -> findLocations ( $ query , [ 'languages' => $ prioritizedLanguages ] ) ; }
Searches children locations of the provided parent location id.

@param \eZ\Publish\API\Repository\Values\Content\Location $location
@param int $offset
@param int $limit

@return \eZ\Publish\API\Repository\Values\Content\Search\SearchResult
Searches children locations of the provided parent location id .