Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function typeFields(): array |
||
30 | { |
||
31 | return [ |
||
32 | 'slug' => [ |
||
33 | 'type' => Type::nonNull(Type::string()), |
||
34 | 'description' => '', |
||
35 | ], |
||
36 | 'url' => [ |
||
37 | 'type' => Type::nonNull(Type::string()), |
||
38 | 'description' => '', |
||
39 | ], |
||
40 | 'content' => [ |
||
41 | 'type' => Type::nonNull(Type::string()), |
||
42 | 'description' => '', |
||
43 | ], |
||
44 | 'title' => [ |
||
45 | 'type' => Type::string(), |
||
46 | 'description' => '', |
||
47 | ], |
||
48 | 'type' => [ |
||
49 | 'type' => Type::string(), |
||
50 | 'description' => 'Related to articles, docs_pages, docs or more', |
||
51 | ], |
||
52 | ]; |
||
53 | } |
||
54 | } |
||
55 |