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
|
@@ 48-57 (lines=10) @@
|
45 |
|
/** |
46 |
|
* {@inheritdoc} |
47 |
|
*/ |
48 |
|
public function getDefinition() { |
49 |
|
$definition = $this->getPluginDefinition(); |
50 |
|
|
51 |
|
return [ |
52 |
|
'name' => $definition['name'], |
53 |
|
'description' => $this->buildDescription($definition), |
54 |
|
'interfaces' => $this->buildInterfaces($definition), |
55 |
|
'contexts' => $this->buildCacheContexts($definition), |
56 |
|
]; |
57 |
|
} |
58 |
|
|
59 |
|
/** |
60 |
|
* 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. |
src/Plugin/GraphQL/Unions/UnionTypePluginBase.php 1 location
|
@@ 44-53 (lines=10) @@
|
41 |
|
/** |
42 |
|
* {@inheritdoc} |
43 |
|
*/ |
44 |
|
public function getDefinition() { |
45 |
|
$definition = $this->getPluginDefinition(); |
46 |
|
|
47 |
|
return [ |
48 |
|
'name' => $definition['name'], |
49 |
|
'description' => $this->buildDescription($definition), |
50 |
|
'types' => $this->buildTypes($definition), |
51 |
|
'contexts' => $this->buildCacheContexts($definition), |
52 |
|
]; |
53 |
|
} |
54 |
|
|
55 |
|
/** |
56 |
|
* Builds the list of types contained within this union type. |