예제 #1
0
 /**
  * Add a form field.
  *
  * @param FieldType $field
  * @return $this
  */
 public function addFormField(FieldType $field)
 {
     $this->form->addField($field);
     return $this;
 }
예제 #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);
     }
 }