function Sql::get_field_alias in Views (for Drupal 7) 8.3
Returns the alias for the given field added to $table.
See also
views_plugin_query_default::add_field()
1 call to Sql::get_field_alias()
- Sql::load_entities in lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php - Loads all entities contained in the passed-in $results. . If the entity belongs to the base table, then it gets stored in $result->_entity. Otherwise, it gets stored in $result->_relationship_entities[$relationship_id];
File
- lib/
Drupal/ views/ Plugin/ views/ query/ Sql.php, line 1046 - Definition of Drupal\views\Plugin\views\query\Sql.
Class
- Sql
- @todo.
Namespace
Drupal\views\Plugin\views\queryCode
function get_field_alias($table_alias, $field) {
return isset($this->field_aliases[$table_alias][$field]) ? $this->field_aliases[$table_alias][$field] : FALSE;
}