You are here

public function ViewsSchemaProvider::__construct in GraphQL 8

Same name and namespace in other branches
  1. 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\SchemaProvider

Code

public function __construct(EntityManagerInterface $entityManager, TypedDataManager $typedDataManager, TypeResolverInterface $typeResolver, ModuleHandlerInterface $moduleHandler) {
  $this->entityManager = $entityManager;
  $this->typeResolver = $typeResolver;
  $this->typedDataManager = $typedDataManager;
  $this->moduleHandler = $moduleHandler;
}