Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function getQuery(array $params) { |
||
29 | if (empty($params['version']) || empty($params['id'])) { |
||
30 | return NULL; |
||
31 | } |
||
32 | |||
33 | $storage = $this->entityTypeManager->getStorage('graphql_query_map'); |
||
34 | /** @var \Drupal\graphql\Entity\QueryMapInterface $map */ |
||
35 | if ($map = $storage->load($params['version'])) { |
||
36 | return $map->getQuery($params['id']); |
||
37 | } |
||
38 | |||
39 | return NULL; |
||
40 | } |
||
41 | } |
||
42 |