You are here

public function Numeric::buildOptionsForm in Views XML Backend 8

Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides FilterPluginBase::buildOptionsForm

File

src/Plugin/views/filter/Numeric.php, line 58
Contains \Drupal\views_xml_backend\Plugin\views\filter\Numeric.

Class

Numeric
Default implementation of the base filter plugin.

Namespace

Drupal\views_xml_backend\Plugin\views\filter

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['xpath_selector'] = [
    '#type' => 'textfield',
    '#title' => 'XPath selector',
    '#description' => $this
      ->t('The field name in the table that will be used as the filter.'),
    '#default_value' => $this->options['xpath_selector'],
    '#required' => TRUE,
  ];
  parent::buildOptionsForm($form, $form_state);
}