public function ContentEntityTypeResolver::__construct in GraphQL 8
Same name and namespace in other branches
- 8.2 src/TypeResolver/ContentEntityTypeResolver.php \Drupal\graphql\TypeResolver\ContentEntityTypeResolver::__construct()
Constructs a ContentEntityTypeResolver object.
Parameters
TypeResolverInterface $typeResolver: The base type resolver service.
\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager service.
\Drupal\Core\TypedData\TypedDataManagerInterface $typedDataManager: The typed data manager service.
Overrides TypedDataTypeResolver::__construct
File
- src/
TypeResolver/ ContentEntityTypeResolver.php, line 59
Class
- ContentEntityTypeResolver
- Resolves the schema for content entities.
Namespace
Drupal\graphql\TypeResolverCode
public function __construct(TypeResolverInterface $typeResolver, EntityManagerInterface $entityManager, TypedDataManagerInterface $typedDataManager) {
parent::__construct($typeResolver);
$this->entityManager = $entityManager;
$this->typedDataManager = $typedDataManager;
}