You are here

public function DateRecurDefaultWidget::settingsSummary in Recurring Dates Field 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/DateRecurDefaultWidget.php, line 56

Class

DateRecurDefaultWidget
Plugin implementation of the 'date_recur_default_widget' widget.

Namespace

Drupal\date_recur\Plugin\Field\FieldWidget

Code

public function settingsSummary() {
  $summary = parent::settingsSummary();
  if ($override = $this
    ->getSetting('timezone_override')) {
    $summary[] = $this
      ->t('Time zone: @timezone', [
      '@timezone' => $override,
    ]);
  }
  return $summary;
}