1 | <?php |
||
2 | |||
3 | namespace Drupal\graphql\Entity; |
||
4 | |||
5 | use Drupal\Core\Config\Entity\ConfigEntityBase; |
||
0 ignored issues
–
show
|
|||
6 | |||
7 | /** |
||
8 | * @ConfigEntityType( |
||
9 | * id = "graphql_query_map", |
||
10 | * label = @Translation("Query map"), |
||
11 | * handlers = { |
||
12 | * "list_builder" = "Drupal\graphql\Controller\QueryMapListBuilder", |
||
13 | * "form" = { |
||
14 | * "import" = "Drupal\graphql\Form\EntityQueryMapImportForm", |
||
15 | * "delete" = "Drupal\Core\Entity\EntityDeleteForm", |
||
16 | * "inspect" = "Drupal\graphql\Form\EntityQueryMapForm", |
||
17 | * } |
||
18 | * }, |
||
19 | * config_prefix = "graphql_query_map", |
||
20 | * admin_permission = "administer graphql queries", |
||
21 | * entity_keys = { |
||
22 | * "id" = "version" |
||
23 | * }, |
||
24 | * config_export = { |
||
25 | * "version", |
||
26 | * "map", |
||
27 | * }, |
||
28 | * links = { |
||
29 | * "inspect-form" = "/admin/config/graphql/query-maps/{graphql_query_map}", |
||
30 | * "import-form" = "/admin/config/graphql/query-maps/import", |
||
31 | * "delete-form" = "/admin/config/graphql/query-maps/{graphql_query_map}/delete", |
||
32 | * "collection" = "/admin/config/graphql/query-maps", |
||
33 | * } |
||
34 | * ) |
||
35 | */ |
||
36 | class QueryMap extends ConfigEntityBase implements QueryMapInterface { |
||
37 | |||
38 | /** |
||
39 | * The query map version. |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | public $version; |
||
44 | |||
45 | /** |
||
46 | * The query map. |
||
47 | * |
||
48 | * @var array |
||
49 | */ |
||
50 | public $map = []; |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function id() { |
||
56 | return $this->version; |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * {@inheritdoc} |
||
61 | */ |
||
62 | public function getQuery($queryId) { |
||
63 | if (isset($this->map[$queryId])) { |
||
64 | return $this->map[$queryId]; |
||
65 | } |
||
66 | |||
67 | return NULL; |
||
68 | } |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | public static function exists($id) { |
||
74 | return (bool) static::load($id); |
||
75 | } |
||
76 | |||
77 | } |
||
78 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths