function DateTimeDefaultWidget::__construct
Same name in other branches
- 8.9.x core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php \Drupal\datetime\Plugin\Field\FieldWidget\DateTimeDefaultWidget::__construct()
- 10 core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php \Drupal\datetime\Plugin\Field\FieldWidget\DateTimeDefaultWidget::__construct()
- 11.x core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php \Drupal\datetime\Plugin\Field\FieldWidget\DateTimeDefaultWidget::__construct()
Overrides WidgetBase::__construct
File
-
core/
modules/ datetime/ src/ Plugin/ Field/ FieldWidget/ DateTimeDefaultWidget.php, line 35
Class
- DateTimeDefaultWidget
- Plugin implementation of the 'datetime_default' widget.
Namespace
Drupal\datetime\Plugin\Field\FieldWidgetCode
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.