public function EntitySchemaProvider::__construct in GraphQL 8
Same name and namespace in other branches
- 8.2 src/SchemaProvider/EntitySchemaProvider.php \Drupal\graphql\SchemaProvider\EntitySchemaProvider::__construct()
Constructs a EntitySchemaProvider object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $entityManager: The entity manager service.
\Drupal\Core\TypedData\TypedDataManager $typedDataManager: The typed data manager service.
\Drupal\graphql\TypeResolverInterface $typeResolver: The type resolver service.
File
- src/
SchemaProvider/ EntitySchemaProvider.php, line 57
Class
- EntitySchemaProvider
- Generates a GraphQL Schema for content entity types.
Namespace
Drupal\graphql\SchemaProviderCode
public function __construct(EntityManagerInterface $entityManager, TypedDataManager $typedDataManager, TypeResolverInterface $typeResolver) {
$this->entityManager = $entityManager;
$this->typeResolver = $typeResolver;
$this->typedDataManager = $typedDataManager;
}