You are here

public function MapCenterBase::getSettings in Geolocation Field 8.3

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

Provide MapCenter option specific settings.

Parameters

array $settings: Current settings.

Return value

array An array only containing keys defined in this plugin.

Overrides MapCenterInterface::getSettings

File

src/MapCenterBase.php, line 38

Class

MapCenterBase
Class MapCenterBase.

Namespace

Drupal\geolocation

Code

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