You are here

protected function Sql::getFieldAlias in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/query/Sql.php \Drupal\views\Plugin\views\query\Sql::getFieldAlias()

Returns the alias for the given field added to $table.

@access protected

See also

\Drupal\views\Plugin\views\query\Sql::addField

1 call to Sql::getFieldAlias()
Sql::loadEntities in core/modules/views/src/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

core/modules/views/src/Plugin/views/query/Sql.php, line 985
Contains \Drupal\views\Plugin\views\query\Sql.

Class

Sql
Views query plugin for an SQL query.

Namespace

Drupal\views\Plugin\views\query

Code

protected function getFieldAlias($table_alias, $field) {
  return isset($this->fieldAliases[$table_alias][$field]) ? $this->fieldAliases[$table_alias][$field] : FALSE;
}