Exemplo n.º 1
0
 /**
  * {@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();
 }
Exemplo n.º 2
0
 /**
  * {@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();
 }
Exemplo n.º 3
0
 /**
  * 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();
 }