public function CountryItem::buildOptionsForm in Country 8
Same name in this branch
- 8 src/Plugin/views/filter/CountryItem.php \Drupal\country\Plugin\views\filter\CountryItem::buildOptionsForm()
- 8 src/Plugin/views/sort/CountryItem.php \Drupal\country\Plugin\views\sort\CountryItem::buildOptionsForm()
Basic options for all sort criteria
Overrides SortPluginBase::buildOptionsForm
File
- src/
Plugin/ views/ sort/ CountryItem.php, line 30
Class
- CountryItem
- Sort handler for country fields.
Namespace
Drupal\country\Plugin\views\sortCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['default_sort'] = [
'#type' => 'radios',
'#title' => t('Sort by ISO code'),
'#options' => [
t('No'),
t('Yes'),
],
'#default_value' => $this->options['default_sort'],
];
}