You are here

public function MapFeatureBase::getSettingsSummary in Geolocation Field 8.2

Same name and namespace in other branches
  1. 8.3 src/MapFeatureBase.php \Drupal\geolocation\MapFeatureBase::getSettingsSummary()

Provide a summary array to use in field formatters.

Parameters

array $settings: The current map settings.

Return value

array An array to use as field formatter summary.

Overrides MapFeatureInterface::getSettingsSummary

1 call to MapFeatureBase::getSettingsSummary()
Drawing::getSettingsSummary in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/Drawing.php
Provide a summary array to use in field formatters.
1 method overrides MapFeatureBase::getSettingsSummary()
Drawing::getSettingsSummary in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/Drawing.php
Provide a summary array to use in field formatters.

File

src/MapFeatureBase.php, line 48

Class

MapFeatureBase
Class MapFeatureBase.

Namespace

Drupal\geolocation

Code

public function getSettingsSummary(array $settings) {
  $summary = [];
  $summary[] = $this
    ->t('%feature enabled', [
    '%feature' => $this
      ->getPluginDefinition()['name'],
  ]);
  return $summary;
}