Code Duplication    Length = 6-7 lines in 2 locations

src/SelectionDisplayBase.php 1 location

@@ 57-62 (lines=6) @@
54
   * @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
55
   *   The entity manager type service.
56
   */
57
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager) {
58
    parent::__construct($configuration, $plugin_id, $plugin_definition);
59
    $this->eventDispatcher = $event_dispatcher;
60
    $this->entityTypeManager = $entity_type_manager;
61
    $this->setConfiguration($configuration);
62
  }
63
64
  /**
65
   * {@inheritdoc}

src/WidgetBase.php 1 location

@@ 86-92 (lines=7) @@
83
   * @param \Drupal\entity_browser\WidgetValidationManager $validation_manager
84
   *   The Widget Validation Manager service.
85
   */
86
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, WidgetValidationManager $validation_manager) {
87
    parent::__construct($configuration, $plugin_id, $plugin_definition);
88
    $this->eventDispatcher = $event_dispatcher;
89
    $this->entityTypeManager = $entity_type_manager;
90
    $this->validationManager = $validation_manager;
91
    $this->setConfiguration($configuration);
92
  }
93
94
  /**
95
   * {@inheritdoc}