protected function QueryBase::getAggregationAlias

Generates an alias for a field and it's aggregated function.

Parameters

string $field: The field name used in the alias.

string $function: The aggregation function used in the alias.

Return value

string The alias for the field.

2 calls to QueryBase::getAggregationAlias()

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 401
Contains \Drupal\Core\Entity\Query\QueryBase.

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

protected function getAggregationAlias($field, $function) {
  return strtolower($field . '_' . $function);
}