You are here

protected function GeoJsonExport::defineOptions in Views GeoJSON 8

Overrides \Drupal\views\Plugin\views\display\DisplayPluginBase:defineOptions().

Overrides RestExport::defineOptions

File

src/Plugin/views/display/GeoJsonExport.php, line 26

Class

GeoJsonExport
The plugin that handles Data response callbacks for GeoJSON REST resources.

Namespace

Drupal\views_geojson\Plugin\views\display

Code

protected function defineOptions() {
  $options = parent::defineOptions();

  // Set the default style plugin to 'geojson'.
  $options['style']['contains']['type']['default'] = 'geojson';
  $options['row']['contains']['type']['default'] = 'data_field';
  return $options;
}