Code Duplication    Length = 7-7 lines in 2 locations

src/Plugin/EntityBrowser/Display/IFrame.php 1 location

@@ 90-96 (lines=7) @@
87
   * @param \Drupal\Core\Path\CurrentPathStack $current_path
88
   *   The current path.
89
   */
90
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, RouteMatchInterface $current_route_match, UuidInterface $uuid, Request $request, CurrentPathStack $current_path) {
91
    parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher);
92
    $this->currentRouteMatch = $current_route_match;
93
    $this->uuidGenerator = $uuid;
94
    $this->request = $request;
95
    $this->currentPath = $current_path;
96
  }
97
98
  /**
99
   * {@inheritdoc}

src/Plugin/EntityBrowser/Display/Modal.php 1 location

@@ 95-101 (lines=7) @@
92
   * @param \Drupal\Component\Uuid\UuidInterface
93
   *   UUID generator interface.
94
   */
95
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, RouteMatchInterface $current_route_match, UuidInterface $uuid, CurrentPathStack $current_path, Request $request) {
96
    parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher);
97
    $this->currentRouteMatch = $current_route_match;
98
    $this->uuidGenerator = $uuid;
99
    $this->currentPath = $current_path;
100
    $this->request = $request;
101
  }
102
103
  /**
104
   * {@inheritdoc}