function FilterTest::defineOptions

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

Class

FilterTest

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.