/** * Register a new Action with this form, renders it and return the HTML code */ public function registerAndRenderAction(Action $action) { $this->ensureIdIsUnique($action->id); $this->ensureHandlerHasAction($action->id); $this->actions[$action->id] = $action; return $action->render(); }