public function QueryTest::addField

File

drupal/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/query/QueryTest.php, line 72
Definition of Drupal\views_test_data\Plugin\views\query\QueryTest.

Class

QueryTest
Defines a query test plugin.

Namespace

Drupal\views_test_data\Plugin\views\query

Code

public function addField($table, $field, $alias = '', $params = array()) {
  $this->fields[$field] = $field;
  return $field;
}