You are here

public function SdlSchemaPluginBase::__construct in GraphQL 8.4

SdlSchemaPluginBase constructor.

@codeCoverageIgnore

Parameters

array $configuration: The plugin configuration array.

string $pluginId: The plugin id.

array $pluginDefinition: The plugin definition array.

\Drupal\Core\Cache\CacheBackendInterface $astCache: The cache bin for caching the parsed SDL.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler service.

\Drupal\graphql\Plugin\SchemaExtensionPluginManager $extensionManager: The schema extension plugin manager.

array $config: The service configuration.

Overrides PluginBase::__construct

File

src/Plugin/GraphQL/Schema/SdlSchemaPluginBase.php, line 95

Class

SdlSchemaPluginBase
Base class that can be used by schema plugins.

Namespace

Drupal\graphql\Plugin\GraphQL\Schema

Code

public function __construct(array $configuration, $pluginId, array $pluginDefinition, CacheBackendInterface $astCache, ModuleHandlerInterface $moduleHandler, SchemaExtensionPluginManager $extensionManager, array $config) {
  parent::__construct($configuration, $pluginId, $pluginDefinition);
  $this->inDevelopment = !empty($config['development']);
  $this->astCache = $astCache;
  $this->extensionManager = $extensionManager;
  $this->moduleHandler = $moduleHandler;
}