You are here

public function Date::buildOptionsForm in Views XML Backend 8

Same name in this branch
  1. 8 src/Plugin/views/filter/Date.php \Drupal\views_xml_backend\Plugin\views\filter\Date::buildOptionsForm()
  2. 8 src/Plugin/views/argument/Date.php \Drupal\views_xml_backend\Plugin\views\argument\Date::buildOptionsForm()
  3. 8 src/Plugin/views/field/Date.php \Drupal\views_xml_backend\Plugin\views\field\Date::buildOptionsForm()

Provide a form to edit options for this plugin.

Overrides ArgumentPluginBase::buildOptionsForm

File

src/Plugin/views/argument/Date.php, line 39
Contains \Drupal\views_xml_backend\Plugin\views\argument\Date.

Class

Date
Date XML argument handler.

Namespace

Drupal\views_xml_backend\Plugin\views\argument

Code

public function buildOptionsForm(&$form, FormStateInterface $form_state) {
  $form['xpath_selector'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('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);
}