public function JsonQueryMapQueryProvider::__construct in GraphQL 8.3
QueryProvider constructor.
Parameters
\Drupal\Core\Cache\CacheBackendInterface $cacheBackend: The cache backend for storing query map file paths.
\Drupal\Core\Config\ConfigFactoryInterface $configFactory: The config factory.
File
- src/
GraphQL/ QueryProvider/ JsonQueryMapQueryProvider.php, line 34
Class
Namespace
Drupal\graphql\GraphQL\QueryProviderCode
public function __construct(CacheBackendInterface $cacheBackend, ConfigFactoryInterface $configFactory) {
$this->lookupPaths = $configFactory
->get('graphql.query_map_json.config')
->get('lookup_paths') ?: [];
$this->cacheBackend = $cacheBackend;
}