Code Duplication    Length = 11-13 lines in 2 locations

src/Plugin/Deriver/PluggableSchemaDeriver.php 1 location

@@ 70-80 (lines=11) @@
67
   * @param \Drupal\graphql\Plugin\TypePluginManagerAggregator $typeManagers
68
   *   The type manager aggregator service.
69
   */
70
  public function __construct(
71
    $basePluginId,
72
    FieldPluginManager $fieldManager,
73
    MutationPluginManager $mutationManager,
74
    TypePluginManagerAggregator $typeManagers
75
  ) {
76
    $this->basePluginId = $basePluginId;
77
    $this->fieldManager = $fieldManager;
78
    $this->mutationManager = $mutationManager;
79
    $this->typeManagers = $typeManagers;
80
  }
81
82
  /**
83
   * {@inheritdoc}

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php 1 location

@@ 94-106 (lines=13) @@
91
   * @param \Drupal\graphql\Plugin\TypePluginManagerAggregator $typeManagers
92
   *   The type manager aggregator service.
93
   */
94
  public function __construct(
95
    $configuration,
96
    $pluginId,
97
    $pluginDefinition,
98
    FieldPluginManager $fieldManager,
99
    MutationPluginManager $mutationManager,
100
    TypePluginManagerAggregator $typeManagers
101
  ) {
102
    parent::__construct($configuration, $pluginId, $pluginDefinition);
103
    $this->fieldManager = $fieldManager;
104
    $this->mutationManager = $mutationManager;
105
    $this->typeManagers = $typeManagers;
106
  }
107
108
  /**
109
   * {@inheritdoc}