src/Plugin/GraphQL/InputTypes/InputTypePluginBase.php 1 location
|
@@ 121-126 (lines=6) @@
|
| 118 |
|
])->getDefinition($schemaBuilder); |
| 119 |
|
} |
| 120 |
|
|
| 121 |
|
if (isset($type) && $type instanceof TypeInterface) { |
| 122 |
|
$nullable = is_array($field) && array_key_exists('nullable', $field) && $field['nullable']; |
| 123 |
|
$multi = is_array($field) && array_key_exists('multi', $field) && $field['multi']; |
| 124 |
|
|
| 125 |
|
return $this->decorateType($type, $nullable, $multi); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
return NULL; |
| 129 |
|
} |
src/Plugin/GraphQL/Traits/ArgumentAwarePluginTrait.php 1 location
|
@@ 86-91 (lines=6) @@
|
| 83 |
|
])->getDefinition($schemaBuilder); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
if (isset($type) && $type instanceof TypeInterface) { |
| 87 |
|
$nullable = is_array($argument) && (array_key_exists('nullable', $argument) && $argument['nullable'] || array_key_exists('default', $argument)); |
| 88 |
|
$multi = is_array($argument) && array_key_exists('multi', $argument) && $argument['multi']; |
| 89 |
|
|
| 90 |
|
return $this->decorateType($type, $nullable, $multi); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
return NULL; |
| 94 |
|
} |