Code Duplication    Length = 10-11 lines in 2 locations

src/Plugin/GraphQL/Mutations/MutationPluginBase.php 1 location

@@ 39-48 (lines=10) @@
36
  /**
37
   * {@inheritdoc}
38
   */
39
  public function getDefinition() {
40
    $definition = $this->getPluginDefinition();
41
42
    return [
43
      'type' => $this->buildType($definition),
44
      'description' => $this->buildDescription($definition),
45
      'args' => $this->buildArguments($definition),
46
      'deprecationReason' => $this->buildDeprecationReason($definition),
47
    ];
48
  }
49
}
50

src/Plugin/GraphQL/Fields/FieldPluginBase.php 1 location

@@ 52-62 (lines=11) @@
49
  /**
50
   * {@inheritdoc}
51
   */
52
  public function getDefinition() {
53
    $definition = $this->getPluginDefinition();
54
55
    return [
56
      'type' => $this->buildType($definition),
57
      'description' => $this->buildDescription($definition),
58
      'args' => $this->buildArguments($definition),
59
      'deprecationReason' => $this->buildDeprecationReason($definition),
60
      'contexts' => $this->buildCacheContexts($definition),
61
    ];
62
  }
63
64
  /**
65
   * {@inheritdoc}