function FilterTest::defineOptions
Same name in other branches
- 9 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::defineOptions()
- 10 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::defineOptions()
- 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()
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\filterCode
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.