You are here

public function ExifReadonlyWidget::__construct in Exif 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/Field/FieldWidget/ExifReadonlyWidget.php \Drupal\exif\Plugin\Field\FieldWidget\ExifReadonlyWidget::__construct()

Constructs a ExifReadonlyWidget 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.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

Overrides WidgetBase::__construct

File

src/Plugin/Field/FieldWidget/ExifReadonlyWidget.php, line 58

Class

ExifReadonlyWidget
Plugin implementation of the 'exif_readonly' widget.

Namespace

Drupal\exif\Plugin\Field\FieldWidget

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityTypeManagerInterface $entity_type_manager) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $third_party_settings);
  $this->entityTypeManager = $entity_type_manager;
}