You are here

public function BooleanEntity::query in Configuration Views 8

Same name and namespace in other branches
  1. 2.0.x 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\filter

Code

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']);
  }
}