Core/Matcher/ContentMatcher.php 1 location
|
@@ 150-160 (lines=11) @@
|
| 147 |
|
* @param string[] $remoteParentLocationIds |
| 148 |
|
* @return Content[] |
| 149 |
|
*/ |
| 150 |
|
protected function findContentsByParentLocationRemoteIds($remoteParentLocationIds) |
| 151 |
|
{ |
| 152 |
|
$locationIds = []; |
| 153 |
|
|
| 154 |
|
foreach ($remoteParentLocationIds as $remoteParentLocationId) { |
| 155 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($remoteParentLocationId); |
| 156 |
|
$locationIds[] = $location->id; |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
return $this->findContentsByParentLocationIds($locationIds); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
/** |
| 163 |
|
* @param string[] $contentTypeIdentifiers |
Core/Matcher/LocationMatcher.php 1 location
|
@@ 149-159 (lines=11) @@
|
| 146 |
|
* @param int[] $parentLocationRemoteIds |
| 147 |
|
* @return Location[] |
| 148 |
|
*/ |
| 149 |
|
protected function findLocationsByParentLocationRemoteIds($parentLocationRemoteIds) |
| 150 |
|
{ |
| 151 |
|
$locationIds = []; |
| 152 |
|
|
| 153 |
|
foreach ($parentLocationRemoteIds as $parentLocationRemoteId) { |
| 154 |
|
$location = $this->repository->getLocationService()->loadLocationByRemoteId($parentLocationRemoteId); |
| 155 |
|
$locationIds[] = $location->id; |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
return $this->findLocationsByParentLocationIds($locationIds); |
| 159 |
|
} |
| 160 |
|
} |
| 161 |
|
|