public function DateTimeDefaultWidget::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/datetime/src/Plugin/Field/FieldWidget/DateTimeDefaultWidget.php \Drupal\datetime\Plugin\Field\FieldWidget\DateTimeDefaultWidget::__construct()
Constructs a WidgetBase object.
Parameters
array $plugin_id: The plugin_id for the widget.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Field\FieldDefinitionInterface $field_definition: The definition of the field to which the widget is associated.
array $settings: The widget settings.
array $third_party_settings: Any third party settings.
Overrides WidgetBase::__construct
File
- core/
modules/ datetime/ src/ Plugin/ Field/ FieldWidget/ DateTimeDefaultWidget.php, line 40 - Contains \Drupal\datetime\Plugin\Field\FieldWidget\DateTimeDefaultWidget.
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;
}