public function Standard::buildOptionsForm in Views XML Backend 8
Same name in this branch
- 8 src/Plugin/views/filter/Standard.php \Drupal\views_xml_backend\Plugin\views\filter\Standard::buildOptionsForm()
- 8 src/Plugin/views/sort/Standard.php \Drupal\views_xml_backend\Plugin\views\sort\Standard::buildOptionsForm()
- 8 src/Plugin/views/argument/Standard.php \Drupal\views_xml_backend\Plugin\views\argument\Standard::buildOptionsForm()
- 8 src/Plugin/views/field/Standard.php \Drupal\views_xml_backend\Plugin\views\field\Standard::buildOptionsForm()
Basic options for all sort criteria
Overrides SortPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ sort/ Standard.php, line 48 - Contains \Drupal\views_xml_backend\Plugin\views\sort\Standard.
Class
- Standard
- Default implementation of the base sort plugin.
Namespace
Drupal\views_xml_backend\Plugin\views\sortCode
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 for the sort.'),
'#default_value' => $this->options['xpath_selector'],
'#required' => TRUE,
];
parent::buildOptionsForm($form, $form_state);
}