Code Duplication    Length = 7-7 lines in 2 locations

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

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

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

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