public function QueryPluginBase::setGroupOperator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/src/Plugin/views/query/QueryPluginBase.php \Drupal\views\Plugin\views\query\QueryPluginBase::setGroupOperator()
Control how all WHERE and HAVING groups are put together.
Parameters
$type: Either 'AND' or 'OR'
File
- core/
modules/ views/ src/ Plugin/ views/ query/ QueryPluginBase.php, line 194 - Contains \Drupal\views\Plugin\views\query\QueryPluginBase.
Class
- QueryPluginBase
- Base plugin class for Views queries.
Namespace
Drupal\views\Plugin\views\queryCode
public function setGroupOperator($type = 'AND') {
$this->groupOperator = strtoupper($type);
}