Core/Matcher/ContentMatcher.php 1 location
|
@@ 227-238 (lines=12) @@
|
| 224 |
|
* @return Content[] |
| 225 |
|
* @deprecated |
| 226 |
|
*/ |
| 227 |
|
protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds) |
| 228 |
|
{ |
| 229 |
|
$locationIds = []; |
| 230 |
|
|
| 231 |
|
foreach ($remoteParentLocationIds as $remoteParentLocationId) { |
| 232 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId); |
| 233 |
|
// unique locations |
| 234 |
|
$locationIds[$location->id] = $location->id; |
| 235 |
|
} |
| 236 |
|
|
| 237 |
|
return $this->findContentsByParentLocationIds($locationIds); |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
/** |
| 241 |
|
* @param string[] $contentTypeIdentifiers |
Core/Matcher/LocationMatcher.php 1 location
|
@@ 219-229 (lines=11) @@
|
| 216 |
|
* @return Location[] |
| 217 |
|
* @deprecated |
| 218 |
|
*/ |
| 219 |
|
protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds) |
| 220 |
|
{ |
| 221 |
|
$locationIds = []; |
| 222 |
|
|
| 223 |
|
foreach ($parentLocationRemoteIds as $parentLocationRemoteId) { |
| 224 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId); |
| 225 |
|
$locationIds[$location->id] = $location->id; |
| 226 |
|
} |
| 227 |
|
|
| 228 |
|
return $this->findLocationsByParentLocationIds($locationIds); |
| 229 |
|
} |
| 230 |
|
} |
| 231 |
|
|