protected function 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\QueryCode
protected function getAggregationAlias($field, $function) { return strtolower($field . '_' . $function); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!QueryBase.php/function/QueryBase::getAggregationAlias/8.1.x