Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | public function getData(int $eventId): array |
||
49 | { |
||
50 | $event_managers = []; |
||
51 | $event_manager_users = $this->event_managers->userList(); |
||
52 | // now convert to a format that's usable by GQL |
||
53 | foreach ($event_manager_users as $user) { |
||
54 | $GUID = $this->utilities->convertToGlobalId('user', $user->ID); |
||
55 | $event_managers[] = [ |
||
56 | 'id' => $GUID, |
||
57 | 'name' => $user->display_name, |
||
58 | ]; |
||
59 | } |
||
60 | return $event_managers; |
||
61 | } |
||
62 | } |
||
63 |