protected function AdministrativeArea::defineOptions in Address 8
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 InOperator::defineOptions
File
- src/
Plugin/ views/ filter/ AdministrativeArea.php, line 102
Class
- AdministrativeArea
- Filter by administrative area.
Namespace
Drupal\address\Plugin\views\filterCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['country'] = [
'contains' => [
'country_source' => [
'default' => '',
],
'country_argument_id' => [
'default' => '',
],
'country_filter_id' => [
'default' => '',
],
'country_static_code' => [
'default' => '',
],
],
];
$options['expose']['contains']['label_type']['default'] = 'static';
return $options;
}