You are here

public function SchemaPluginBase::__construct in GraphQL 8.3

SchemaPluginBase constructor.

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

array $pluginDefinition: The plugin definition array.

\Drupal\graphql\Plugin\FieldPluginManager $fieldManager: The field plugin manager.

\Drupal\graphql\Plugin\MutationPluginManager $mutationManager: The mutation plugin manager.

\Drupal\graphql\Plugin\SubscriptionPluginManager $subscriptionManager: The subscription plugin manager.

\Drupal\graphql\Plugin\TypePluginManagerAggregator $typeManagers: The type manager aggregator service.

\Drupal\graphql\GraphQL\QueryProvider\QueryProviderInterface $queryProvider: The query provider service.

\Drupal\Core\Session\AccountProxyInterface $currentUser: The current user.

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\Language\LanguageManagerInterface $languageManager: The language manager service.

array $parameters: The service parameters.

Overrides PluginBase::__construct

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 168

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function __construct($configuration, $pluginId, $pluginDefinition, FieldPluginManager $fieldManager, MutationPluginManager $mutationManager, SubscriptionPluginManager $subscriptionManager, TypePluginManagerAggregator $typeManagers, QueryProviderInterface $queryProvider, AccountProxyInterface $currentUser, LoggerInterface $logger, LanguageManagerInterface $languageManager, array $parameters) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->fieldManager = $fieldManager;
  $this->mutationManager = $mutationManager;
  $this->subscriptionManager = $subscriptionManager;
  $this->typeManagers = $typeManagers;
  $this->queryProvider = $queryProvider;
  $this->currentUser = $currentUser;
  $this->parameters = $parameters;
  $this->logger = $logger;
  $this->languageManager = $languageManager;
}