public function SchemaPluginManager::__construct in GraphQL 8.3
Same name and namespace in other branches
- 8.4 src/Plugin/SchemaPluginManager.php \Drupal\graphql\Plugin\SchemaPluginManager::__construct()
SchemaPluginManager constructor.
Parameters
bool|string $pluginSubdirectory: The plugin's subdirectory.
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend.
string|null $pluginInterface: The interface each plugin should implement.
string $pluginAnnotationName: The name of the annotation that contains the plugin definition.
array $config: The configuration service parameter.
Overrides DefaultPluginManager::__construct
File
- src/
Plugin/ SchemaPluginManager.php, line 31
Class
Namespace
Drupal\graphql\PluginCode
public function __construct($pluginSubdirectory, \Traversable $namespaces, ModuleHandlerInterface $moduleHandler, CacheBackendInterface $cacheBackend, $pluginInterface, $pluginAnnotationName, array $config) {
parent::__construct($pluginSubdirectory, $namespaces, $moduleHandler, $pluginInterface, $pluginAnnotationName);
$this
->alterInfo('graphql_schema');
$this
->useCaches(empty($config['development']));
$this
->setCacheBackend($cacheBackend, 'schemas', [
'graphql',
]);
}