src/Plugin/GraphQL/Enums/EnumPluginBase.php 1 location
|
@@ 29-37 (lines=9) @@
|
26 |
|
/** |
27 |
|
* {@inheritdoc} |
28 |
|
*/ |
29 |
|
public function getDefinition() { |
30 |
|
$definition = $this->getPluginDefinition(); |
31 |
|
|
32 |
|
return [ |
33 |
|
'name' => $definition['name'], |
34 |
|
'description' => $this->buildDescription($definition), |
35 |
|
'values' => $this->buildEnumValues($definition), |
36 |
|
]; |
37 |
|
} |
38 |
|
|
39 |
|
/** |
40 |
|
* Builds the enum values. |
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location
|
@@ 34-42 (lines=9) @@
|
31 |
|
/** |
32 |
|
* {@inheritdoc} |
33 |
|
*/ |
34 |
|
public function getDefinition() { |
35 |
|
$definition = $this->getPluginDefinition(); |
36 |
|
|
37 |
|
return [ |
38 |
|
'name' => $definition['name'], |
39 |
|
'description' => $this->buildDescription($definition), |
40 |
|
'fields' => $this->buildFields($definition), |
41 |
|
]; |
42 |
|
} |
43 |
|
|
44 |
|
/** |
45 |
|
* Builds the fields of the type definition. |
src/Plugin/GraphQL/Interfaces/InterfacePluginBase.php 1 location
|
@@ 45-53 (lines=9) @@
|
42 |
|
/** |
43 |
|
* {@inheritdoc} |
44 |
|
*/ |
45 |
|
public function getDefinition() { |
46 |
|
$definition = $this->getPluginDefinition(); |
47 |
|
|
48 |
|
return [ |
49 |
|
'name' => $definition['name'], |
50 |
|
'description' => $this->buildDescription($definition), |
51 |
|
'interfaces' => $this->buildInterfaces($definition), |
52 |
|
]; |
53 |
|
} |
54 |
|
|
55 |
|
/** |
56 |
|
* Builds the list of interfaces inherited by this interface. |
src/Plugin/GraphQL/Unions/UnionTypePluginBase.php 1 location
|
@@ 41-49 (lines=9) @@
|
38 |
|
/** |
39 |
|
* {@inheritdoc} |
40 |
|
*/ |
41 |
|
public function getDefinition() { |
42 |
|
$definition = $this->getPluginDefinition(); |
43 |
|
|
44 |
|
return [ |
45 |
|
'name' => $definition['name'], |
46 |
|
'description' => $this->buildDescription($definition), |
47 |
|
'types' => $this->buildTypes($definition), |
48 |
|
]; |
49 |
|
} |
50 |
|
|
51 |
|
/** |
52 |
|
* Builds the list of types contained within this union type. |