Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function list(): array |
||
30 | { |
||
31 | $id = (string)Hash::get((array)$this->getView()->get('object'), 'id'); |
||
32 | $cached = (string)Cache::read('objects_editors', 'default'); |
||
33 | $objectsEditors = (array)json_decode($cached, true); |
||
34 | if (array_key_exists($id, $objectsEditors)) { |
||
35 | return $objectsEditors[$id]; |
||
36 | } |
||
37 | |||
38 | return []; |
||
39 | } |
||
41 |