Control how all WHERE and HAVING groups are put together.
Parameters
$type:
Either 'AND' or 'OR'
File
- drupal/core/modules/views/lib/Drupal/views/Plugin/views/query/QueryPluginBase.php, line 154
- Definition of Drupal\views\Plugin\views\query\QueryPluginBase.
Class
- QueryPluginBase
- @todo.
Namespace
Drupal\views\Plugin\views\query
Code
function set_group_operator($type = 'AND') {
$this->group_operator = strtoupper($type);
}