Пример #1
0
 /**
  * Get the form field names.
  *
  * @return array
  */
 public function getFormFieldNames()
 {
     $fields = $this->form->getFields();
     return $fields->lists('field_name')->all();
 }
Пример #2
0
 /**
  * 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);
     }
 }