form = $form; } public function getState(): stdClass { $config = parent::getState(); $config->form = $this->form->getConfig(); // Decision forms shouldn't have submit buttons // because the step-by-step decision wizard includes // next/previous buttons unset($config->form['pages'][0]['submitButton']); return $config; } }