public function BooleanEntity::queryOpBoolean in Configuration Views 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/filter/BooleanEntity.php \Drupal\config_views\Plugin\views\filter\BooleanEntity::queryOpBoolean()
Adds a where condition to the query for a boolean value.
Parameters
string $field: The field name to add the where condition for.
string $query_operator: (optional) Either self::EQUAL or self::NOT_EQUAL. Defaults to self::EQUAL.
Overrides BooleanOperator::queryOpBoolean
File
- src/
Plugin/ views/ filter/ BooleanEntity.php, line 29
Class
- BooleanEntity
- Views filter for boolean to work with config entities.
Namespace
Drupal\config_views\Plugin\views\filterCode
public function queryOpBoolean($field, $query_operator = self::EQUAL) {
$this->query
->condition($this->options['group'], $field, $this->value, $this->operator);
}