Copied!

AggregationResultExtractor

AggregationResultExtractor.php : 14

Methods

publicextract()

AggregationResultExtractor.php : 26

Transforms raw aggregation result into \Ibexa\Contracts\Core\Repository\Values\Content\Search\AggregationResult object.

public extract(Aggregation $aggregation, LanguageFilter $languageFilter, array<string|int, mixed> $data) : AggregationResult

Parameters

Name Type Default value Description
$aggregation Aggregation - -
$languageFilter LanguageFilter - -
$data array<string|int, mixed> -

Raw aggregation data

Return values

AggregationResult

publicsupports()

AggregationResultExtractor.php : 19

Returns true if extractor supports given aggregation.

public supports(Aggregation $aggregation, LanguageFilter $languageFilter) : bool

Parameters

Name Type Default value Description
$aggregation Aggregation - -
$languageFilter LanguageFilter - -

Return values

bool