You are here

public function LocationBase::getSettings in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 src/LocationBase.php \Drupal\geolocation\LocationBase::getSettings()

Provide Location option specific settings.

Parameters

array $settings: Current settings.

Return value

array An array only containing keys defined in this plugin.

Overrides LocationInterface::getSettings

4 calls to LocationBase::getSettings()
FixedCoordinates::getCoordinates in src/Plugin/geolocation/Location/FixedCoordinates.php
Get map location.
FixedCoordinates::getSettingsForm in src/Plugin/geolocation/Location/FixedCoordinates.php
Settings form by ID and context.
IpStack::getCoordinates in src/Plugin/geolocation/Location/IpStack.php
Get map location.
IpStack::getSettingsForm in src/Plugin/geolocation/Location/IpStack.php
Settings form by ID and context.

File

src/LocationBase.php, line 38

Class

LocationBase
Class LocationBase.

Namespace

Drupal\geolocation

Code

public function getSettings(array $settings) {
  $default_settings = $this
    ->getDefaultSettings();
  $settings = array_replace_recursive($default_settings, $settings);
  return $settings;
}