public function FilterBooleanOperatorDefaultTest::query in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterBooleanOperatorDefaultTest.php \Drupal\views_test_data\Plugin\views\filter\FilterBooleanOperatorDefaultTest::query()
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides BooleanOperator::query
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ filter/ FilterBooleanOperatorDefaultTest.php, line 19
Class
- FilterBooleanOperatorDefaultTest
- Filter to test queryOpBoolean() with default operator.
Namespace
Drupal\views_test_data\Plugin\views\filterCode
public function query() {
$this
->ensureMyTable();
$field = "{$this->tableAlias}.{$this->realField}";
$this
->queryOpBoolean($field);
}