Code Duplication    Length = 6-7 lines in 2 locations

src/SelectionDisplayBase.php 1 location

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