You are here

public function TypedDataTypeResolver::__construct in GraphQL 8

Same name and namespace in other branches
  1. 8.2 src/TypeResolver/TypedDataTypeResolver.php \Drupal\graphql\TypeResolver\TypedDataTypeResolver::__construct()

Creates a TypedDataTypeResolver object.

Parameters

\Drupal\graphql\TypeResolverInterface $typeResolver: The type resolver service.

2 calls to TypedDataTypeResolver::__construct()
ContentEntityTypeResolver::__construct in src/TypeResolver/ContentEntityTypeResolver.php
Constructs a ContentEntityTypeResolver object.
FieldItemTypeResolver::__construct in src/TypeResolver/FieldItemTypeResolver.php
Constructs a FieldItemTypeResolver object.
2 methods override TypedDataTypeResolver::__construct()
ContentEntityTypeResolver::__construct in src/TypeResolver/ContentEntityTypeResolver.php
Constructs a ContentEntityTypeResolver object.
FieldItemTypeResolver::__construct in src/TypeResolver/FieldItemTypeResolver.php
Constructs a FieldItemTypeResolver object.

File

src/TypeResolver/TypedDataTypeResolver.php, line 50

Class

TypedDataTypeResolver
Generically resolves the schema for typed data types.

Namespace

Drupal\graphql\TypeResolver

Code

public function __construct(TypeResolverInterface $typeResolver) {
  $this->typeResolver = $typeResolver;
}