You are here

public function MapFeatureBase::getSettingsSummary in Geolocation Field 8.3

Same name and namespace in other branches
  1. 8.2 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

2 calls 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.
GeolocationShapes::getSettingsSummary in src/Plugin/geolocation/MapFeature/GeolocationShapes.php
Provide a summary array to use in field formatters.
2 methods override MapFeatureBase::getSettingsSummary()
Drawing::getSettingsSummary in modules/geolocation_google_maps/src/Plugin/geolocation/MapFeature/Drawing.php
Provide a summary array to use in field formatters.
GeolocationShapes::getSettingsSummary in src/Plugin/geolocation/MapFeature/GeolocationShapes.php
Provide a summary array to use in field formatters.

File

src/MapFeatureBase.php, line 46

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;
}