protected function TypedDataTypeResolver::resolveRecursiveList in GraphQL 8.2
Same name and namespace in other branches
- 8 src/TypeResolver/TypedDataTypeResolver.php \Drupal\graphql\TypeResolver\TypedDataTypeResolver::resolveRecursiveList()
Resolves list data definitions.
Parameters
\Drupal\Core\TypedData\ListDataDefinitionInterface $type: The list data definition to be resolved
Return value
\Fubhy\GraphQL\Type\Definition\Types\TypeInterface|null The resolved list type or NULL if the item type of the list could not be resolved.
1 call to TypedDataTypeResolver::resolveRecursiveList()
- TypedDataTypeResolver::resolveRecursive in src/
TypeResolver/ TypedDataTypeResolver.php
File
- src/
TypeResolver/ TypedDataTypeResolver.php, line 94
Class
- TypedDataTypeResolver
- Generically resolves the schema for typed data types.
Namespace
Drupal\graphql\TypeResolverCode
protected function resolveRecursiveList(ListDataDefinitionInterface $type) {
$itemDefinition = $type
->getItemDefinition();
if (!($itemType = $this->typeResolver
->resolveRecursive($itemDefinition))) {
return NULL;
}
return $itemType;
}