You are here

public function FieldItemTypeResolver::applies in GraphQL 8

Same name and namespace in other branches
  1. 8.2 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\TypeResolver

Code

public function applies($type) {
  return $type instanceof FieldItemDataDefinition;
}