Core/Matcher/LocationMatcher.php 1 location
|
@@ 164-174 (lines=11) @@
|
| 161 |
|
* @param int[] $parentLocationRemoteIds |
| 162 |
|
* @return Location[] |
| 163 |
|
*/ |
| 164 |
|
protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds) |
| 165 |
|
{ |
| 166 |
|
$locationIds = []; |
| 167 |
|
|
| 168 |
|
foreach ($parentLocationRemoteIds as $parentLocationRemoteId) { |
| 169 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId); |
| 170 |
|
$locationIds[] = $location->id; |
| 171 |
|
} |
| 172 |
|
|
| 173 |
|
return $this->findLocationsByParentLocationIds($locationIds); |
| 174 |
|
} |
| 175 |
|
} |
| 176 |
|
|
Core/Matcher/ContentMatcher.php 1 location
|
@@ 186-197 (lines=12) @@
|
| 183 |
|
* @param string[] $remoteParentLocationIds |
| 184 |
|
* @return Content[] |
| 185 |
|
*/ |
| 186 |
|
protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds) |
| 187 |
|
{ |
| 188 |
|
$locationIds = []; |
| 189 |
|
|
| 190 |
|
foreach ($remoteParentLocationIds as $remoteParentLocationId) { |
| 191 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId); |
| 192 |
|
// unique locations |
| 193 |
|
$locationIds[$location->id] = $location->id; |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
return $this->findContentsByParentLocationIds($locationIds); |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
/** |
| 200 |
|
* @param string[] $contentTypeIdentifiers |