You are here

public function Bundle::query in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/filter/Bundle.php \Drupal\views\Plugin\views\filter\Bundle::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 InOperator::query

File

core/modules/views/src/Plugin/views/filter/Bundle.php, line 109
Contains \Drupal\views\Plugin\views\filter\Bundle.

Class

Bundle
Filter class which allows filtering by entity bundles.

Namespace

Drupal\views\Plugin\views\filter

Code

public function query() {

  // Make sure that the entity base table is in the query.
  $this
    ->ensureMyTable();
  parent::query();
}