function 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 68

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.