You are here

protected function GeolocationStyleBase::defineOptions in Geolocation Field 8.3

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 StylePluginBase::defineOptions

1 call to GeolocationStyleBase::defineOptions()
CommonMap::defineOptions in src/Plugin/views/style/CommonMap.php
Information about options for all kinds of purposes will be held here.
1 method overrides GeolocationStyleBase::defineOptions()
CommonMap::defineOptions in src/Plugin/views/style/CommonMap.php
Information about options for all kinds of purposes will be held here.

File

src/Plugin/views/style/GeolocationStyleBase.php, line 180

Class

GeolocationStyleBase
Geolocation Style Base.

Namespace

Drupal\geolocation\Plugin\views\style

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['geolocation_field'] = [
    'default' => '',
  ];
  $options['data_provider_id'] = [
    'default' => 'geolocation_field_provider',
  ];
  $options['data_provider_settings'] = [
    'default' => [],
  ];
  $options['title_field'] = [
    'default' => '',
  ];
  $options['label_field'] = [
    'default' => '',
  ];
  $options['icon_field'] = [
    'default' => '',
  ];
  $options['marker_row_number'] = [
    'default' => FALSE,
  ];
  $options['marker_icon_path'] = [
    'default' => '',
  ];
  return $options;
}