You are here

public function FieldItemTypeResolver::__construct in GraphQL 8

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

Constructs a FieldItemTypeResolver object.

Parameters

TypeResolverInterface $typeResolver: The base type resolver service.

\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager service.

Overrides TypedDataTypeResolver::__construct

File

src/TypeResolver/FieldItemTypeResolver.php, line 41

Class

FieldItemTypeResolver
Resolves the schema for field definitions.

Namespace

Drupal\graphql\TypeResolver

Code

public function __construct(TypeResolverInterface $typeResolver, EntityManagerInterface $entityManager) {
  parent::__construct($typeResolver);
  $this->entityManager = $entityManager;
}