You are here

public function EntityReferenceDragDropWidget::__construct in Entity Reference Drag & Drop 8

Same name and namespace in other branches
  1. 2.x src/Plugin/Field/FieldWidget/EntityReferenceDragDropWidget.php \Drupal\entityreference_dragdrop\Plugin\Field\FieldWidget\EntityReferenceDragDropWidget::__construct()

EntityReferenceDragDropWidget constructor.

Parameters

string $plugin_id:

mixed $plugin_definition:

\Drupal\Core\Field\FieldDefinitionInterface $field_definition:

array $settings:

array $third_party_settings:

\Drupal\Core\Entity\EntityTypeManager $entity_type_manager:

\Drupal\Core\Entity\EntityDisplayRepository $entity_display_repository:

Overrides OptionsWidgetBase::__construct

File

src/Plugin/Field/FieldWidget/EntityReferenceDragDropWidget.php, line 54

Class

EntityReferenceDragDropWidget
Plugin implementation of the 'entityreference_dragdrop' widget.

Namespace

Drupal\entityreference_dragdrop\Plugin\Field\FieldWidget

Code

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