function FileWidget::__construct

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

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\FieldWidget

Code

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.