function ExposedFormPluginBase::defineOptions
Information about options for all kinds of purposes will be held here.
'option_name' => [
 - '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 [].
 ],
  
  Return value
array Returns the options of this handler/plugin.
Overrides PluginBase::defineOptions
1 call to ExposedFormPluginBase::defineOptions()
- InputRequired::defineOptions in core/
modules/ views/ src/ Plugin/ views/ exposed_form/ InputRequired.php  - Information about options for all kinds of purposes will be held here.
 
1 method overrides ExposedFormPluginBase::defineOptions()
- InputRequired::defineOptions in core/
modules/ views/ src/ Plugin/ views/ exposed_form/ InputRequired.php  - Information about options for all kinds of purposes will be held here.
 
File
- 
              core/
modules/ views/ src/ Plugin/ views/ exposed_form/ ExposedFormPluginBase.php, line 26  
Class
- ExposedFormPluginBase
 - Base class for Views exposed filter form plugins.
 
Namespace
Drupal\views\Plugin\views\exposed_formCode
protected function defineOptions() {
  $options = parent::defineOptions();
  $options['submit_button'] = [
    'default' => $this->t('Apply'),
  ];
  $options['reset_button'] = [
    'default' => FALSE,
  ];
  $options['reset_button_label'] = [
    'default' => $this->t('Reset'),
  ];
  $options['exposed_sorts_label'] = [
    'default' => $this->t('Sort by'),
  ];
  $options['expose_sort_order'] = [
    'default' => TRUE,
  ];
  $options['sort_asc_label'] = [
    'default' => $this->t('Asc'),
  ];
  $options['sort_desc_label'] = [
    'default' => $this->t('Desc'),
  ];
  return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.