You are here

public function MapThemerBase::defaultSettings in Geofield Map 8.2

Get the defaultSettings for the Map Themer Plugin.

Parameters

string $k: A specific defaultSettings key index.

Return value

array|string The defaultSettings to be returned.

Overrides MapThemerInterface::defaultSettings

2 calls to MapThemerBase::defaultSettings()
MapThemerBase::defaultLegendHeader in src/MapThemerBase.php
Returns the default Legend Header.
MapThemerBase::getDefaultThemerElement in src/MapThemerBase.php

File

src/MapThemerBase.php, line 349

Class

MapThemerBase
A base class for MapThemer plugins.

Namespace

Drupal\geofield_map

Code

public function defaultSettings($k = NULL) {
  $default_settings = $this->pluginDefinition['defaultSettings'];
  if (!empty($k)) {
    return $default_settings[$k];
  }
  return $default_settings;
}