Example #1
0
 /**
  * Method to attach a Form object to the field.
  *
  * @param   object  $form  The Form object to attach to the form field.
  * @return  object  The form field object so that the method can be used in a chain.
  */
 public function setForm(Form $form)
 {
     $this->form = $form;
     $this->formControl = $form->getFormControl();
     return $this;
 }