You are here

protected function DateRecurModularWidgetBase::getMode in Recurring Date Field Modular Widgets 3.x

Same name and namespace in other branches
  1. 8 src/Plugin/Field/FieldWidget/DateRecurModularWidgetBase.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularWidgetBase::getMode()
  2. 2.x src/Plugin/Field/FieldWidget/DateRecurModularWidgetBase.php \Drupal\date_recur_modular\Plugin\Field\FieldWidget\DateRecurModularWidgetBase::getMode()

Determine the best suitable mode for a date recur field item.

Parameters

\Drupal\date_recur\Plugin\Field\FieldType\DateRecurItem $item: A date recur field item.

Return value

string|null A mode.

2 methods override DateRecurModularWidgetBase::getMode()
DateRecurModularAlphaWidget::getMode in src/Plugin/Field/FieldWidget/DateRecurModularAlphaWidget.php
Determine the best suitable mode for a date recur field item.
DateRecurModularOscarWidget::getMode in src/Plugin/Field/FieldWidget/DateRecurModularOscarWidget.php
Determine the best suitable mode for a date recur field item.

File

src/Plugin/Field/FieldWidget/DateRecurModularWidgetBase.php, line 85

Class

DateRecurModularWidgetBase
Date recur modular widget base.

Namespace

Drupal\date_recur_modular\Plugin\Field\FieldWidget

Code

protected function getMode(DateRecurItem $item) : ?string {
  return NULL;
}