src/Plugin/GraphQL/Enums/EnumPluginBase.php 1 location
|
@@ 31-39 (lines=9) @@
|
28 |
|
/** |
29 |
|
* {@inheritdoc} |
30 |
|
*/ |
31 |
|
public function getDefinition() { |
32 |
|
$definition = $this->getPluginDefinition(); |
33 |
|
|
34 |
|
return [ |
35 |
|
'name' => $definition['name'], |
36 |
|
'description' => $this->buildDescription($definition), |
37 |
|
'values' => $this->buildEnumValues($definition), |
38 |
|
]; |
39 |
|
} |
40 |
|
|
41 |
|
/** |
42 |
|
* @param $definition |
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location
|
@@ 36-44 (lines=9) @@
|
33 |
|
/** |
34 |
|
* {@inheritdoc} |
35 |
|
*/ |
36 |
|
public function getDefinition() { |
37 |
|
$definition = $this->getPluginDefinition(); |
38 |
|
|
39 |
|
return [ |
40 |
|
'name' => $definition['name'], |
41 |
|
'description' => $this->buildDescription($definition), |
42 |
|
'fields' => $this->buildFields($definition), |
43 |
|
]; |
44 |
|
} |
45 |
|
|
46 |
|
/** |
47 |
|
* @param $definition |
src/Plugin/GraphQL/Types/TypePluginBase.php 1 location
|
@@ 57-65 (lines=9) @@
|
54 |
|
/** |
55 |
|
* {@inheritdoc} |
56 |
|
*/ |
57 |
|
public function getDefinition() { |
58 |
|
$definition = $this->getPluginDefinition(); |
59 |
|
|
60 |
|
return [ |
61 |
|
'name' => $definition['name'], |
62 |
|
'description' => $this->buildDescription($definition), |
63 |
|
'interfaces' => $this->buildInterfaces($definition), |
64 |
|
]; |
65 |
|
} |
66 |
|
|
67 |
|
/** |
68 |
|
* @param $definition |