Skip to content

Commit

Permalink
Use extractContentItems() method
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Nov 30, 2019
1 parent 25a84ee commit 2f36bb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Core/Site/RelationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ private function getRelatedContentItems(array $relatedContentIds, array $content
]);

$searchResult = $this->site->getFilterService()->filterContent($query);
/** @var \eZ\Publish\API\Repository\Values\Content\Content[] $contentItems */
$contentItems = $this->extractValueObjects($searchResult);
$contentItems = $this->extractContentItems($searchResult);

if ($limit !== null) {
return \array_slice($contentItems, 0, $limit);
Expand Down

0 comments on commit 2f36bb5

Please sign in to comment.