function DateRangeDefaultWidget::__construct

Same name in other branches
  1. 9 core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDefaultWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDefaultWidget::__construct()
  2. 8.9.x core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDefaultWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDefaultWidget::__construct()
  3. 11.x core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDefaultWidget.php \Drupal\datetime_range\Plugin\Field\FieldWidget\DateRangeDefaultWidget::__construct()

Overrides WidgetBase::__construct

File

core/modules/datetime_range/src/Plugin/Field/FieldWidget/DateRangeDefaultWidget.php, line 34

Class

DateRangeDefaultWidget
Plugin implementation of the 'daterange_default' widget.

Namespace

Drupal\datetime_range\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityStorageInterface $date_storage) {
    parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
    $this->dateStorage = $date_storage;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.