You are here

public function GeofieldLatLonWidget::settingsSummary in Geofield 8

Returns a short summary for the current widget settings.

If an empty result is returned, a UI can still be provided to display a settings form in case the widget has configurable settings.

Return value

array A short summary of the widget settings.

Overrides WidgetBase::settingsSummary

File

src/Plugin/Field/FieldWidget/GeofieldLatLonWidget.php, line 55

Class

GeofieldLatLonWidget
Plugin implementation of the 'geofield_latlon' widget.

Namespace

Drupal\geofield\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  return [
    $this
      ->t('HTML5 Geolocation button is @state', [
      '@state' => $this
        ->getSetting('html5_geolocation') ? $this
        ->t('enabled') : $this
        ->t('disabled'),
    ]),
  ];
}