public function QueryTest::add_where in Views (for Drupal 7) 8.3
File
- tests/
views_test_data/ lib/ Drupal/ views_test_data/ Plugin/ views/ query/ QueryTest.php, line 40 - Definition of Drupal\views_test_data\Plugin\views\query\QueryTest.
Class
- QueryTest
- Defines a query test plugin.
Namespace
Drupal\views_test_data\Plugin\views\queryCode
public function add_where($group, $field, $value = NULL, $operator = NULL) {
$this->conditions[] = array(
'field' => $field,
'value' => $value,
'operator' => $operator,
);
}