protected function ViewsDependentFilter::defineOptions in Views Dependent Filters 8
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides FilterPluginBase::defineOptions
File
- src/
Plugin/ views/ filter/ ViewsDependentFilter.php, line 49
Class
- ViewsDependentFilter
- Filters by given list of related content title options.
Namespace
Drupal\views_dependent_filter\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
// Override the exposed default. This makes no sense not exposed.
$options['exposed'] = array(
'default' => TRUE,
);
$options['controller_filter'] = array(
'default' => NULL,
);
$options['controller_values'] = array(
'default' => NULL,
);
$options['dependent_filters'] = array(
'default' => array(),
);
return $options;
}