public function BooleanEntity::query in Configuration Views 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/views/filter/BooleanEntity.php \Drupal\config_views\Plugin\views\filter\BooleanEntity::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
- src/Plugin/ views/ filter/ BooleanEntity.php, line 17 
Class
- BooleanEntity
- Views filter for boolean to work with config entities.
Namespace
Drupal\config_views\Plugin\views\filterCode
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']);
  }
}