function element(\HTML_QuickForm2_Container $form) { $this->options = [0 => $this->all, -1 => $this->no, 1 => $this->yes]; $form->putGroupRadioButtonTwbs($this->form_field, $this->options)->setLabel($this->label); if (!$this->value) { $form->getForm()->initValues([$this->form_field => 0]); } }