1 | <?php |
||
9 | class JsonQueryMapQueryProvider implements QueryProviderInterface { |
||
10 | /** |
||
11 | * The cache backend for storing query map file paths. |
||
12 | * |
||
13 | * @var \Drupal\Core\Cache\CacheBackendInterface |
||
14 | */ |
||
15 | protected $cacheBackend; |
||
16 | |||
17 | /** |
||
18 | * The paths to use for finding query maps. |
||
19 | * |
||
20 | * @var string[] |
||
21 | */ |
||
22 | protected $lookupPaths; |
||
23 | |||
24 | /** |
||
25 | * Constructs a QueryProvider object. |
||
26 | * |
||
27 | * @param \Drupal\Core\Cache\CacheBackendInterface $cacheBackend |
||
28 | * The cache backend for storing query map file paths. |
||
29 | * @param \Drupal\Core\Config\ConfigFactoryInterface $configFactory |
||
30 | * The config factory. |
||
31 | */ |
||
32 | public function __construct(CacheBackendInterface $cacheBackend, ConfigFactoryInterface $configFactory) { |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function getQuery(array $params) { |
||
61 | |||
62 | /** |
||
63 | * Discovers the available query maps within the configured lookup paths. |
||
64 | * |
||
65 | * @return array |
||
66 | * An associative array of query maps with the query map versions as keys. |
||
67 | */ |
||
68 | protected function discoverQueryMaps() { |
||
90 | } |
||
91 |