yii\elasticsearch\ActiveDataProvider::getAggregation PHP Метод

getAggregation() публичный Метод

Returns results of the specified aggregation.
public getAggregation ( string $name ) : array
$name string aggregation name.
Результат array aggregation results.
    public function getAggregation($name)
    {
        $aggregations = $this->getAggregations();
        if (!isset($aggregations[$name])) {
            throw new InvalidCallException("Aggregation '{$name}' does not present.");
        }
        return $aggregations[$name];
    }