You are here

public function DateTimeDatelistNoTimeWidget::settingsSummary in Datetime Extras 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 DateTimeDatelistWidget::settingsSummary

File

src/Plugin/Field/FieldWidget/DateTimeDatelistNoTimeWidget.php, line 56

Class

DateTimeDatelistNoTimeWidget
Plugin implementation of the 'datetime_datelist_no_time' widget.

Namespace

Drupal\datetime_extras\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  $summary[] = t('Date year range: @range', [
    '@range' => $this
      ->getSetting('date_year_range'),
  ]);
  return $summary;
}