public function FieldItemTypeResolver::applies in GraphQL 8.2
Same name and namespace in other branches
- 8 src/TypeResolver/FieldItemTypeResolver.php \Drupal\graphql\TypeResolver\FieldItemTypeResolver::applies()
Parameters
mixed $type:
Return value
bool
Overrides TypedDataTypeResolver::applies
File
- src/
TypeResolver/ FieldItemTypeResolver.php, line 49
Class
- FieldItemTypeResolver
- Resolves the schema for field definitions.
Namespace
Drupal\graphql\TypeResolverCode
public function applies($type) {
return $type instanceof FieldItemDataDefinition;
}