Core/Matcher/ContentMatcher.php 1 location
|
@@ 208-219 (lines=12) @@
|
| 205 |
|
* @param string[] $remoteParentLocationIds |
| 206 |
|
* @return Content[] |
| 207 |
|
*/ |
| 208 |
|
protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds) |
| 209 |
|
{ |
| 210 |
|
$locationIds = []; |
| 211 |
|
|
| 212 |
|
foreach ($remoteParentLocationIds as $remoteParentLocationId) { |
| 213 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId); |
| 214 |
|
// unique locations |
| 215 |
|
$locationIds[$location->id] = $location->id; |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
return $this->findContentsByParentLocationIds($locationIds); |
| 219 |
|
} |
| 220 |
|
|
| 221 |
|
/** |
| 222 |
|
* @param string[] $contentTypeIdentifiers |
Core/Matcher/LocationMatcher.php 1 location
|
@@ 186-196 (lines=11) @@
|
| 183 |
|
* @param int[] $parentLocationRemoteIds |
| 184 |
|
* @return Location[] |
| 185 |
|
*/ |
| 186 |
|
protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds) |
| 187 |
|
{ |
| 188 |
|
$locationIds = []; |
| 189 |
|
|
| 190 |
|
foreach ($parentLocationRemoteIds as $parentLocationRemoteId) { |
| 191 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId); |
| 192 |
|
$locationIds[] = $location->id; |
| 193 |
|
} |
| 194 |
|
|
| 195 |
|
return $this->findLocationsByParentLocationIds($locationIds); |
| 196 |
|
} |
| 197 |
|
} |
| 198 |
|
|