protected function DateRecurModularOscarWidget::isAllDayToggleEnabled in Recurring Date Field Modular Widgets 3.x
Same name and namespace in other branches
- 8 src/Plugin/Field/FieldWidget/DateRecurModularOscarWidget.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularOscarWidget::isAllDayToggleEnabled()
- 2.x src/Plugin/Field/FieldWidget/DateRecurModularOscarWidget.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularOscarWidget::isAllDayToggleEnabled()
Whether all day toggle is enabled.
Return value
bool Whether all day toggle is enabled.
2 calls to DateRecurModularOscarWidget::isAllDayToggleEnabled()
- DateRecurModularOscarWidget::formElement in src/
Plugin/ Field/ FieldWidget/ DateRecurModularOscarWidget.php - Returns the form for a single field widget.
- DateRecurModularOscarWidget::settingsSummary in src/
Plugin/ Field/ FieldWidget/ DateRecurModularOscarWidget.php - Returns a short summary for the current widget settings.
File
- src/
Plugin/ Field/ FieldWidget/ DateRecurModularOscarWidget.php, line 588
Class
- DateRecurModularOscarWidget
- Date recur opening hours widget.
Namespace
Drupal\date_recur_modular\Plugin\Field\FieldWidgetCode
protected function isAllDayToggleEnabled() : bool {
return !empty($this
->getSetting('all_day_toggle'));
}