ActiveDataProvider.php
public function getAggregation($name)
    {
        $aggregations = $this->getAggregations();
        if (!isset($aggregations[$name])) {
            throw new InvalidCallException("Aggregation '{$name}' does not present.");
        }
        return $aggregations[$name];
    }
public function getAggregation($name)
    {
        $aggregations = $this->getAggregations();
        if (!isset($aggregations[$name])) {
            throw new InvalidCallException("Aggregation '{$name}' does not present.");
        }
        return $aggregations[$name];
    }
public function getAggregation ( $ name ) { $ aggregations = $ this -> getAggregations ( ) ; if ( ! isset ( $ aggregations [ $ name ] ) ) { throw new InvalidCallException ( "Aggregation '{$name}' does not present." ) ; } return $ aggregations [ $ name ] ; }
Returns results of the specified aggregation.
@param string $name aggregation name.
@return array aggregation results.
@throws InvalidCallException if requested aggregation does not present in query results.
Returns results of the specified aggregation .