public function SmartDateDatelistWidget::settingsSummary in Smart Date 3.2.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 8 src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 3.x src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 3.0.x src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 3.1.x src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 3.3.x src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
- 3.4.x src/Plugin/Field/FieldWidget/SmartDateDatelistWidget.php \Drupal\smart_date\Plugin\Field\FieldWidget\SmartDateDatelistWidget::settingsSummary()
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 SmartDateWidgetBase::settingsSummary
File
- src/
Plugin/ Field/ FieldWidget/ SmartDateDatelistWidget.php, line 144
Class
- SmartDateDatelistWidget
- Plugin implementation of the 'smartdate_datelist' widget.
Namespace
Drupal\smart_date\Plugin\Field\FieldWidgetCode
public function settingsSummary() {
$summary = [];
$summary[] = $this
->t('Date part order: @order', [
'@order' => $this
->getSetting('date_order'),
]);
$summary[] = $this
->t('Time type: @time_type', [
'@time_type' => $this
->getSetting('time_type'),
]);
$summary[] = $this
->t('Time increments: @increment', [
'@increment' => $this
->getSetting('increment'),
]);
return $summary;
}