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/Unions/UnionTypePluginBase.php 1 location
|
@@ 42-50 (lines=9) @@
|
39 |
|
/** |
40 |
|
* {@inheritdoc} |
41 |
|
*/ |
42 |
|
public function getDefinition() { |
43 |
|
$definition = $this->getPluginDefinition(); |
44 |
|
|
45 |
|
return [ |
46 |
|
'name' => $definition['name'], |
47 |
|
'description' => $this->buildDescription($definition), |
48 |
|
'types' => $this->buildTypes($definition), |
49 |
|
]; |
50 |
|
} |
51 |
|
|
52 |
|
/** |
53 |
|
* @param $definition |