Code Duplication    Length = 15-15 lines in 2 locations

modules/graphql_core/src/Plugin/GraphQL/Fields/Blocks/BlocksByRegion.php 1 location

@@ 102-116 (lines=15) @@
99
   * @param \Drupal\Core\Entity\EntityRepositoryInterface $entityRepository
100
   *   The entity repository service.
101
   */
102
  public function __construct(
103
    array $configuration,
104
    $pluginId,
105
    $pluginDefinition,
106
    SubRequestBuffer $subRequestBuffer,
107
    ThemeManagerInterface $themeManager,
108
    EntityTypeManagerInterface $entityTypeManager,
109
    EntityRepositoryInterface $entityRepository
110
  ) {
111
    parent::__construct($configuration, $pluginId, $pluginDefinition);
112
    $this->subRequestBuffer = $subRequestBuffer;
113
    $this->themeManager = $themeManager;
114
    $this->entityTypeManager = $entityTypeManager;
115
    $this->entityRepository = $entityRepository;
116
  }
117
118
  /**
119
   * {@inheritdoc}

modules/graphql_core/src/Plugin/GraphQL/Fields/Routing/RouteEntity.php 1 location

@@ 95-109 (lines=15) @@
92
   *   The language manager service.
93
   * @param \Drupal\graphql\GraphQL\Buffers\SubRequestBuffer $subrequestBuffer
94
   */
95
  public function __construct(
96
    array $configuration,
97
    $pluginId,
98
    $pluginDefinition,
99
    EntityTypeManagerInterface $entityTypeManager,
100
    EntityRepositoryInterface $entityRepository,
101
    LanguageManagerInterface $languageManager,
102
    SubRequestBuffer $subrequestBuffer
103
  ) {
104
    parent::__construct($configuration, $pluginId, $pluginDefinition);
105
    $this->entityTypeManager = $entityTypeManager;
106
    $this->languageManager = $languageManager;
107
    $this->subrequestBuffer = $subrequestBuffer;
108
    $this->entityRepository = $entityRepository;
109
  }
110
111
  /**
112
   * {@inheritdoc}