src/Plugin/GraphQL/Enums/EnumPluginBase.php 1 location
|
@@ 32-41 (lines=10) @@
|
29 |
|
/** |
30 |
|
* {@inheritdoc} |
31 |
|
*/ |
32 |
|
public function getDefinition() { |
33 |
|
$definition = $this->getPluginDefinition(); |
34 |
|
|
35 |
|
return [ |
36 |
|
'name' => $definition['name'], |
37 |
|
'description' => $this->buildDescription($definition), |
38 |
|
'values' => $this->buildEnumValues($definition), |
39 |
|
'contexts' => $this->buildCacheContexts($definition), |
40 |
|
]; |
41 |
|
} |
42 |
|
|
43 |
|
/** |
44 |
|
* Builds the enum values. |
src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location
|
@@ 37-46 (lines=10) @@
|
34 |
|
/** |
35 |
|
* {@inheritdoc} |
36 |
|
*/ |
37 |
|
public function getDefinition() { |
38 |
|
$definition = $this->getPluginDefinition(); |
39 |
|
|
40 |
|
return [ |
41 |
|
'name' => $definition['name'], |
42 |
|
'description' => $this->buildDescription($definition), |
43 |
|
'fields' => $this->buildFields($definition), |
44 |
|
'contexts' => $this->buildCacheContexts($definition), |
45 |
|
]; |
46 |
|
} |
47 |
|
|
48 |
|
/** |
49 |
|
* Builds the fields of the type definition. |
src/Plugin/GraphQL/Interfaces/InterfacePluginBase.php 1 location
|
@@ 62-71 (lines=10) @@
|
59 |
|
/** |
60 |
|
* {@inheritdoc} |
61 |
|
*/ |
62 |
|
public function getDefinition() { |
63 |
|
$definition = $this->getPluginDefinition(); |
64 |
|
|
65 |
|
return [ |
66 |
|
'name' => $definition['name'], |
67 |
|
'description' => $this->buildDescription($definition), |
68 |
|
'interfaces' => $this->buildInterfaces($definition), |
69 |
|
'contexts' => $this->buildCacheContexts($definition), |
70 |
|
]; |
71 |
|
} |
72 |
|
|
73 |
|
/** |
74 |
|
* Builds the list of interfaces inherited by this interface. |
src/Plugin/GraphQL/Scalars/ScalarPluginBase.php 1 location
|
@@ 40-48 (lines=9) @@
|
37 |
|
/** |
38 |
|
* {@inheritdoc} |
39 |
|
*/ |
40 |
|
public function getDefinition() { |
41 |
|
$definition = $this->getPluginDefinition(); |
42 |
|
|
43 |
|
return [ |
44 |
|
'name' => $definition['name'], |
45 |
|
'description' => $this->buildDescription($definition), |
46 |
|
'contexts' => $this->buildCacheContexts($definition), |
47 |
|
]; |
48 |
|
} |
49 |
|
|
50 |
|
/** |
51 |
|
* Serializes the scalar value. |