function NumericFilter::defaultExposeOptions

Provide default options for exposed filters.

Overrides FilterPluginBase::defaultExposeOptions

File

core/modules/views/src/Plugin/views/filter/NumericFilter.php, line 47

Class

NumericFilter
Simple filter to handle greater than/less than filters.

Namespace

Drupal\views\Plugin\views\filter

Code

public function defaultExposeOptions() {
  parent::defaultExposeOptions();
  $this->options['expose']['min_placeholder'] = NULL;
  $this->options['expose']['max_placeholder'] = NULL;
  $this->options['expose']['placeholder'] = NULL;
}

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