/** * Get the form field names. * * @return array */ public function getFormFieldNames() { $fields = $this->form->getFields(); return $fields->lists('field_name')->all(); }
/** * Merge fields into the form. * * @param Form $parent * @param Form $child */ protected function mergeFields(Form $parent, Form $child) { foreach ($child->getFields() as $field) { $parent->addField($field); } }