public function PersistedQueryPluginManager::__construct in GraphQL 8.4
PersistedQueryPluginManager 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 $definitionCacheBackend:
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/ PersistedQueryPluginManager.php, line 32
Class
- PersistedQueryPluginManager
- Collects persisted queries that are defined as plugins.
Namespace
Drupal\graphql\PluginCode
public function __construct($pluginSubdirectory, \Traversable $namespaces, ModuleHandlerInterface $moduleHandler, CacheBackendInterface $definitionCacheBackend, $pluginInterface, $pluginAnnotationName, array $config) {
parent::__construct($pluginSubdirectory, $namespaces, $moduleHandler, $pluginInterface, $pluginAnnotationName);
$this
->alterInfo('graphql_persisted_query');
$this
->useCaches(empty($config['development']));
$this
->setCacheBackend($definitionCacheBackend, 'graphql_persisted_query', [
'graphql_persisted_query',
]);
}