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