public function DateRecurDefaultWidget::getTimezone in Recurring Dates Field 8
2 calls to DateRecurDefaultWidget::getTimezone()
- DateRecurDefaultWidget::createDefaultValue in src/
Plugin/ Field/ FieldWidget/ DateRecurDefaultWidget.php - Creates a date object for use as a default value.
- DateRecurDefaultWidget::massageFormValues in src/
Plugin/ Field/ FieldWidget/ DateRecurDefaultWidget.php - Massages the form values into the format expected for field values.
File
- src/
Plugin/ Field/ FieldWidget/ DateRecurDefaultWidget.php, line 64
Class
- DateRecurDefaultWidget
- Plugin implementation of the 'date_recur_default_widget' widget.
Namespace
Drupal\date_recur\Plugin\Field\FieldWidgetCode
public function getTimezone() {
if ($this
->getSetting('timezone_override')) {
return $this
->getSetting('timezone_override');
}
else {
return drupal_get_user_timezone();
}
}