function Sql::get_table_info

Get the information associated with a table.

If you need the alias of a table with a particular relationship, use ensure_table().

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php, line 707
Definition of Drupal\views\Plugin\views\query\Sql.

Class

Sql
@todo.

Namespace

Drupal\views\Plugin\views\query

Code

function get_table_info($table) {
  if (!empty($this->table_queue[$table])) {
    return $this->table_queue[$table];
  }

  // In rare cases we might *only* have aliased versions of the table.
  if (!empty($this->tables[$this->view->storage
    ->get('base_table')][$table])) {
    $alias = $this->tables[$this->view->storage
      ->get('base_table')][$table]['alias'];
    if (!empty($this->table_queue[$alias])) {
      return $this->table_queue[$alias];
    }
  }
}