You are here

public function GeofieldGoogleMapFormatter::getSettings in Geofield Map 8

Returns the array of settings, including defaults for missing settings.

Return value

array The array of settings.

Overrides PluginSettingsBase::getSettings

3 calls to GeofieldGoogleMapFormatter::getSettings()
GeofieldGoogleMapFormatter::settingsForm in src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php
Returns a form to configure settings for the formatter.
GeofieldGoogleMapFormatter::settingsSummary in src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php
Returns a short summary for the current formatter settings.
GeofieldGoogleMapFormatter::viewElements in src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php
Builds a renderable array for a field value.

File

src/Plugin/Field/FieldFormatter/GeofieldGoogleMapFormatter.php, line 193

Class

GeofieldGoogleMapFormatter
Plugin implementation of the 'geofield_google_map' formatter.

Namespace

Drupal\geofield_map\Plugin\Field\FieldFormatter

Code

public function getSettings() {

  // Merge defaults before returning the array.
  if (!$this->defaultSettingsMerged) {
    $this
      ->mergeDefaults();
  }
  return $this->settings;
}