private function getAggregationsConfig($attributes)
    {
        $aggregations = [];
        foreach ($attributes as $attribute) {
            $bucketConfig                        = $this->getBucketConfig($attribute);
            $aggregations[$bucketConfig['name']] = $bucketConfig;
        }

        return $aggregations;
    }
private function getAggregationsConfig($attributes)
    {
        $aggregations = [];
        foreach ($attributes as $attribute) {
            $bucketConfig                        = $this->getBucketConfig($attribute);
            $aggregations[$bucketConfig['name']] = $bucketConfig;
        }

        return $aggregations;
    }
private function getAggregationsConfig ( $ attributes ) { $ aggregations = [ ] ; foreach ( $ attributes as $ attribute ) { $ bucketConfig = $ this -> getBucketConfig ( $ attribute ) ; $ aggregations [ $ bucketConfig [ 'name' ] ] = $ bucketConfig ; } return $ aggregations ; }
Get aggregations config.

@param \Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection $attributes The attributes

@return array
Get aggregations config .