You are here

function openlayers_views_plugin_display_openlayers::option_definition in Openlayers 6.2

Same name and namespace in other branches
  1. 7.3 modules/openlayers_views/views/openlayers_views_plugin_display_openlayers.inc \openlayers_views_plugin_display_openlayers::option_definition()
  2. 7.2 modules/openlayers_views/views/openlayers_views_plugin_display_openlayers.inc \openlayers_views_plugin_display_openlayers::option_definition()

File

modules/openlayers_views/views/openlayers_views_plugin_display_openlayers.inc, line 33
Display plugin for OpenLayers Data

Class

openlayers_views_plugin_display_openlayers
@file Display plugin for OpenLayers Data

Code

function option_definition() {
  $options = parent::option_definition();

  // Prevent the title from being translated at the view level
  // so that it can be translated at the OpenLayers level
  $options['title']['translatable'] = 0;
  $options['displays'] = array(
    'default' => array(),
  );

  // Overrides for standard stuff:
  $options['style_plugin']['default'] = 'openlayers_data';
  $options['row_plugin']['default'] = '';
  $options['defaults']['default']['row_plugin'] = FALSE;
  $options['defaults']['default']['row_options'] = FALSE;
  return $options;
}