You are here

protected function IpGeoLocPluginStyleMap::defineOptions in IP Geolocation Views & Maps 8

Same name in this branch
  1. 8 src/Plugin/views/argument/IpGeoLocPluginArgDefaultIPGeoLoc.php \Drupal\ip_geoloc\Plugin\views\argument\IpGeoLocPluginStyleMap::defineOptions()
  2. 8 src/Plugin/views/style/IpGeoLocPluginStyleMap.php \Drupal\ip_geoloc\Plugin\views\style\IpGeoLocPluginStyleMap::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 ArgumentPluginBase::defineOptions

File

src/Plugin/views/argument/IpGeoLocPluginArgDefaultIPGeoLoc.php, line 44

Class

IpGeoLocPluginStyleMap
Default argument plugin to extract a user via menu_get_object.

Namespace

Drupal\ip_geoloc\Plugin\views\argument

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options = parent::option_definition();
  $options['type'] = [
    'default' => 'postal',
  ];
  return $options;
}