You are here

public function CountryAutocompleteWidget::settingsSummary in Country 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/CountryAutocompleteWidget.php, line 81

Class

CountryAutocompleteWidget
Plugin implementation of the 'country_autocomplete' widget.

Namespace

Drupal\country\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = [];
  $summary[] = t('Size: @size', [
    '@size' => $this
      ->getSetting('size'),
  ]);
  $summary[] = t('Placeholder: @placeholder', [
    '@placeholder' => $this
      ->getSetting('placeholder'),
  ]);
  return $summary;
}