public function ViewsDependentFilter::buildExtraOptionsForm in Views Dependent Filters 8
Extra settings form: select the controller filter.
Selecting the controller filter here allows us to nicely show its value form in the regular options form.
Overrides HandlerBase::buildExtraOptionsForm
File
- src/
Plugin/ views/ filter/ ViewsDependentFilter.php, line 216
Class
- ViewsDependentFilter
- Filters by given list of related content title options.
Namespace
Drupal\views_dependent_filter\Plugin\views\filterCode
public function buildExtraOptionsForm(&$form, FormStateInterface $form_state) {
$options = $this
->get_filter_options('controller');
$form['controller_filter'] = array(
'#type' => 'radios',
'#title' => t('Controller filter'),
'#options' => $options,
'#default_value' => isset($this->options['controller_filter']) ? $this->options['controller_filter'] : '',
'#description' => t('The exposed filter whose values will be used to control dependent filters. Only filters that are prior to this one in the order are allowed.'),
);
}