Code Duplication    Length = 6-7 lines in 2 locations

src/SelectionDisplayBase.php 1 location

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

src/WidgetBase.php 1 location

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