protected function CountryItem::defineOptions in Country 8
Same name in this branch
- 8 src/Plugin/views/filter/CountryItem.php \Drupal\country\Plugin\views\filter\CountryItem::defineOptions()
- 8 src/Plugin/views/sort/CountryItem.php \Drupal\country\Plugin\views\sort\CountryItem::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides ManyToOne::defineOptions
File
- src/
Plugin/ views/ filter/ CountryItem.php, line 80
Class
- CountryItem
- Filter by country ISO2.
Namespace
Drupal\country\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['country_target_bundle'] = [
'default' => 'global',
];
$options['type'] = [
'default' => 'select',
];
return $options;
}