public function FilterTest::buildOptionsForm in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/FilterTest.php \Drupal\views_test_data\Plugin\views\filter\FilterTest::buildOptionsForm()
Overrides Drupal\views\Plugin\views\row\RowPluginBase::buildOptionsForm().
Return value
array
Overrides FilterPluginBase::buildOptionsForm
File
- core/
modules/ views/ tests/ modules/ views_test_data/ src/ Plugin/ views/ filter/ FilterTest.php, line 35 - Contains \Drupal\views_test_data\Plugin\views\filter\FilterTest.
Class
- FilterTest
- Plugin annotation @ViewsFilter("test_filter");
Namespace
Drupal\views_test_data\Plugin\views\filterCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['test_enable'] = array(
'#type' => 'checkbox',
'#title' => $this
->t('Controls whether the filter plugin should be active'),
'#default_value' => $this->options['test_enable'],
);
}