protected function DateRecurModularSierraWidget::getInterpreter 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::getInterpreter()
- 2.x src/Plugin/Field/FieldWidget/DateRecurModularSierraWidget.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularSierraWidget::getInterpreter()
Load the interpreter to be used by this widget.
Return value
\Drupal\date_recur\Entity\DateRecurInterpreterInterface|null An interpreter instance.
3 calls to DateRecurModularSierraWidget::getInterpreter()
- DateRecurModularSierraWidget::calculateDependencies in src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php - Calculates dependencies for the configured plugin.
- DateRecurModularSierraWidget::formElement in src/
Plugin/ Field/ FieldWidget/ DateRecurModularSierraWidget.php - Returns the form for a single field 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 958
Class
- DateRecurModularSierraWidget
- Date recur sierra widget.
Namespace
Drupal\date_recur_modular\Plugin\Field\FieldWidgetCode
protected function getInterpreter() : ?DateRecurInterpreterInterface {
$id = $this
->getSetting('interpreter');
if (!is_string($id) || empty($id)) {
return NULL;
}
return $this->dateRecurInterpreterStorage
->load($id);
}