Core/Matcher/ContentMatcher.php 1 location
|
@@ 242-253 (lines=12) @@
|
| 239 |
|
* @return Content[] |
| 240 |
|
* @deprecated |
| 241 |
|
*/ |
| 242 |
|
protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds) |
| 243 |
|
{ |
| 244 |
|
$locationIds = []; |
| 245 |
|
|
| 246 |
|
foreach ($remoteParentLocationIds as $remoteParentLocationId) { |
| 247 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId); |
| 248 |
|
// unique locations |
| 249 |
|
$locationIds[$location->id] = $location->id; |
| 250 |
|
} |
| 251 |
|
|
| 252 |
|
return $this->findContentsByParentLocationIds($locationIds); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
/** |
| 256 |
|
* @param string[] $contentTypeIdentifiers |
Core/Matcher/LocationMatcher.php 1 location
|
@@ 234-244 (lines=11) @@
|
| 231 |
|
* @return Location[] |
| 232 |
|
* @deprecated |
| 233 |
|
*/ |
| 234 |
|
protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds) |
| 235 |
|
{ |
| 236 |
|
$locationIds = []; |
| 237 |
|
|
| 238 |
|
foreach ($parentLocationRemoteIds as $parentLocationRemoteId) { |
| 239 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId); |
| 240 |
|
$locationIds[$location->id] = $location->id; |
| 241 |
|
} |
| 242 |
|
|
| 243 |
|
return $this->findLocationsByParentLocationIds($locationIds); |
| 244 |
|
} |
| 245 |
|
} |
| 246 |
|
|