function SortPluginBase::buildOptionsForm
Same name in other branches
- 9 core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\SortPluginBase::buildOptionsForm()
- 8.9.x core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\SortPluginBase::buildOptionsForm()
- 11.x core/modules/views/src/Plugin/views/sort/SortPluginBase.php \Drupal\views\Plugin\views\sort\SortPluginBase::buildOptionsForm()
Basic options for all sort criteria.
Overrides HandlerBase::buildOptionsForm
2 calls to SortPluginBase::buildOptionsForm()
- Date::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ sort/ Date.php - Basic options for all sort criteria.
- Random::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ sort/ Random.php - Basic options for all sort criteria.
2 methods override SortPluginBase::buildOptionsForm()
- Date::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ sort/ Date.php - Basic options for all sort criteria.
- Random::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ sort/ Random.php - Basic options for all sort criteria.
File
-
core/
modules/ views/ src/ Plugin/ views/ sort/ SortPluginBase.php, line 80
Class
- SortPluginBase
- Base sort handler that has no options and performs a simple sort.
Namespace
Drupal\views\Plugin\views\sortCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
if ($this->canExpose()) {
$this->showExposeButton($form, $form_state);
}
$form['op_val_start'] = [
'#value' => '<div class="clearfix">',
];
$this->showSortForm($form, $form_state);
$form['op_val_end'] = [
'#value' => '</div>',
];
if ($this->canExpose()) {
$this->showExposeForm($form, $form_state);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.