public function TypedDataTypeResolver::applies in GraphQL 8.2
Same name and namespace in other branches
- 8 src/TypeResolver/TypedDataTypeResolver.php \Drupal\graphql\TypeResolver\TypedDataTypeResolver::applies()
Parameters
mixed $type:
Return value
bool
Overrides TypeResolverInterface::applies
2 methods override TypedDataTypeResolver::applies()
- ContentEntityTypeResolver::applies in src/
TypeResolver/ ContentEntityTypeResolver.php - FieldItemTypeResolver::applies in src/
TypeResolver/ FieldItemTypeResolver.php
File
- src/
TypeResolver/ TypedDataTypeResolver.php, line 80
Class
- TypedDataTypeResolver
- Generically resolves the schema for typed data types.
Namespace
Drupal\graphql\TypeResolverCode
public function applies($type) {
return $type instanceof DataDefinitionInterface;
}