function FilterTest::defineOptions

Same name and namespace in other branches
  1. 11.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::defineOptions()
  2. 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::defineOptions()
  3. 8.9.x core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::defineOptions()

Overrides Drupal\views\Plugin\views\row\RowPluginBase::defineOptions().

Return value

array

Overrides FilterPluginBase::defineOptions

File

core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php, line 18

Class

FilterTest
Plugin annotation @ViewsFilter("test_filter");

Namespace

Drupal\views_test_data\Plugin\views\filter

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['test_enable'] = [
    'default' => TRUE,
  ];
  return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.