コード例 #1
0
ファイル: Status.php プロジェクト: pedrocones/hydrotools
 /**
  * {@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();
 }
コード例 #2
0
ファイル: LanguageFilter.php プロジェクト: nstielau/drops-8
 /**
  * {@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();
 }
コード例 #3
0
ファイル: Bundle.php プロジェクト: anatalsceo/en-classe
 /**
  * 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();
 }