/** * {@inheritdoc} */ public function query() { if (is_array($this->value) && in_array('_active', $this->value)) { $active = \Drupal::entityQuery('uc_order_status')->condition('weight', 0, '>=')->execute(); $this->value = array_merge($this->value, $active); } parent::query(); }
/** * {@inheritdoc} */ public function query() { // Don't filter by language in case the site is not multilingual, because // there is no point in doing so. if (!$this->languageManager->isMultilingual()) { return; } parent::query(); }
/** * Overrides \Drupal\views\Plugin\views\filter\InOperator::query(). */ public function query() { // Make sure that the entity base table is in the query. $this->ensureMyTable(); parent::query(); }