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

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