QueryBase::getAggregationAlias

protected QueryBase::getAggregationAlias($field, $function)

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.

File

core/lib/Drupal/Core/Entity/Query/QueryBase.php, line 444

Class

QueryBase
The base entity query class.

Namespace

Drupal\Core\Entity\Query

Code

protected function getAggregationAlias($field, $function) {
  return strtolower($field . '_' . $function);
}
doc_Drupal
2016-10-29 09:35:41
Comments
Leave a Comment

Please login to continue.