protected function DateRecurModularSierraWidget::isOccurrencesModalEnabled in Recurring Date Field Modular Widgets 8
Same name and namespace in other branches
- 3.x src/Plugin/Field/FieldWidget/DateRecurModularSierraWidget.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularSierraWidget::isOccurrencesModalEnabled()
- 2.x src/Plugin/Field/FieldWidget/DateRecurModularSierraWidget.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularSierraWidget::isOccurrencesModalEnabled()
Determines whether occurrences modal is enabled.
Return value
bool Whether occurrences modal is enabled.
3 calls to DateRecurModularSierraWidget::isOccurrencesModalEnabled()
- DateRecurModularSierraWidget::formElement in src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php - Returns the form for a single field widget.
- DateRecurModularSierraWidget::settingsForm in src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php - Returns a form to configure settings for the widget.
- DateRecurModularSierraWidget::settingsSummary in src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php - Returns a short summary for the current widget settings.
File
- src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php, line 972
Class
- DateRecurModularSierraWidget
- Date recur sierra widget.
Namespace
Drupal\date_recur_modular\Plugin\Field\FieldWidgetCode
protected function isOccurrencesModalEnabled() : bool {
return !empty($this
->getSetting('occurrences_modal'));
}