Example #1
0
 /**
  * Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::query().
  */
 public function query()
 {
     // Call the parent if this option is enabled.
     if ($this->options['test_enable']) {
         parent::query();
     }
 }
 /**
  * {@inheritdoc}
  */
 public function query()
 {
     $this->value = \Drupal::state()->get('views_test_cache_context', 'George');
     parent::query();
 }