function FileWidget::__construct
Constructs a WidgetBase object.
Parameters
string $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
1 call to FileWidget::__construct()
- ImageWidget::__construct in core/modules/ image/ src/ Plugin/ Field/ FieldWidget/ ImageWidget.php 
- Constructs an ImageWidget object.
1 method overrides FileWidget::__construct()
- ImageWidget::__construct in core/modules/ image/ src/ Plugin/ Field/ FieldWidget/ ImageWidget.php 
- Constructs an ImageWidget object.
File
- 
              core/modules/ file/ src/ Plugin/ Field/ FieldWidget/ FileWidget.php, line 38 
Class
- FileWidget
- Plugin implementation of the 'file_generic' widget.
Namespace
Drupal\file\Plugin\Field\FieldWidgetCode
public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, ElementInfoManagerInterface $element_info) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->elementInfo = $element_info;
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
