Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 78-83 (lines=6) @@
75
   * @param \Drupal\Core\Path\CurrentPathStack $current_path
76
   *   The current path.
77
   */
78
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, UuidInterface $uuid, KeyValueStoreExpirableInterface $selection_storage, RouteMatchInterface $current_route_match, Request $request, CurrentPathStack $current_path) {
79
    parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $uuid, $selection_storage);
80
    $this->currentRouteMatch = $current_route_match;
81
    $this->request = $request;
82
    $this->currentPath = $current_path;
83
  }
84
85
  /**
86
   * {@inheritdoc}

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

@@ 83-88 (lines=6) @@
80
   * @param \Symfony\Component\HttpFoundation\Request $request
81
   *   Current request.
82
   */
83
  public function __construct(array $configuration, $plugin_id, $plugin_definition, EventDispatcherInterface $event_dispatcher, UuidInterface $uuid, KeyValueStoreExpirableInterface $selection_storage, RouteMatchInterface $current_route_match, CurrentPathStack $current_path, Request $request) {
84
    parent::__construct($configuration, $plugin_id, $plugin_definition, $event_dispatcher, $uuid, $selection_storage);
85
    $this->currentRouteMatch = $current_route_match;
86
    $this->currentPath = $current_path;
87
    $this->request = $request;
88
  }
89
90
  /**
91
   * {@inheritdoc}