return $result;
} public function aggregate(Criteria
$criteria, SalesChannelContext
$salesChannelContext): AggregationResultCollection
{ $criteria =
clone $criteria;
$this->
processCriteria($criteria,
$salesChannelContext);
$result =
$this->aggregator->
aggregate($this->definition,
$criteria,
$salesChannelContext->
getContext());
$event =
new EntityAggregationResultLoadedEvent($this->definition,
$result,
$salesChannelContext->
getContext());
$this->eventDispatcher->
dispatch($event,
$event->
getName());
return $result;
} public function searchIds(Criteria
$criteria, SalesChannelContext
$salesChannelContext): IdSearchResult
{ $criteria =
clone $criteria;
$this->
processCriteria($criteria,
$salesChannelContext);