BooleanEntity.php in Configuration Views 2.0.x
File
src/Plugin/views/filter/BooleanEntity.php
View source
<?php
namespace Drupal\config_views\Plugin\views\filter;
use Drupal\views\Plugin\views\filter\BooleanOperator;
class BooleanEntity extends BooleanOperator {
public function query() {
$field = $this->realField;
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
call_user_func([
$this,
$info[$this->operator]['method'],
], $field, $info[$this->operator]['query_operator']);
}
}
public function queryOpBoolean($field, $query_operator = self::EQUAL) {
$this->query
->condition($this->options['group'], $field, $this->value, $this->operator);
}
}
Classes
Name |
Description |
BooleanEntity |
Views filter for boolean to work with config entities. |