public function handleIO() : array { $form = new \Platform\Form(); // You need to get the appropriate form. if (! $form->validate) return ['status' => 0, 'form_errors' => $form->getAllErrors()]; return ['status' => 1, 'message' => 'This entire array is returned to javascript']; }