You are here

public function FilterTest::query in Views (for Drupal 7) 8.3

Overrides Drupal\views\Plugin\views\filter\FilterPluginBase::query().

Overrides FilterPluginBase::query

File

tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/filter/FilterTest.php, line 55
Definition of Drupal\views_test_data\Plugin\views\filter\FilterTest.

Class

FilterTest
Plugin annotation @Plugin( id = "test_filter", title = @Translation("Test filter plugin"), help = @Translation("Provides a generic filter test plugin."), base = "node", type = "type" )

Namespace

Drupal\views_test_data\Plugin\views\filter

Code

public function query() {

  // Call the parent if this option is enabled.
  if ($this->options['test_enable']) {
    parent::query();
  }
}