You are here

public function StringEntity::query in Configuration Views 8

Same name and namespace in other branches
  1. 2.0.x src/Plugin/views/filter/StringEntity.php \Drupal\config_views\Plugin\views\filter\StringEntity::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 StringFilter::query

File

src/Plugin/views/filter/StringEntity.php, line 81

Class

StringEntity
Views filter for strings 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'])) {
    $this
      ->{$info[$this->operator]['method']}($field);
  }
}