function StringFilter::defineOptions

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()
  3. 10 core/modules/views/src/Plugin/views/filter/StringFilter.php \Drupal\views\Plugin\views\filter\StringFilter::defineOptions()

Overrides FilterPluginBase::defineOptions

1 call to StringFilter::defineOptions()
Combine::defineOptions in core/modules/views/src/Plugin/views/filter/Combine.php
Information about options for all kinds of purposes will be held here.
1 method overrides StringFilter::defineOptions()
Combine::defineOptions in core/modules/views/src/Plugin/views/filter/Combine.php
Information about options for all kinds of purposes will be held here.

File

core/modules/views/src/Plugin/views/filter/StringFilter.php, line 71

Class

StringFilter
Basic textfield filter to handle string filtering commands.

Namespace

Drupal\views\Plugin\views\filter

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['expose']['contains']['required'] = [
    'default' => FALSE,
  ];
  $options['expose']['contains']['placeholder'] = [
    'default' => '',
  ];
  return $options;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.