Symfony\Component\DomCrawler\Form::set PHP Method

set() public method

Sets a named field.
public set ( FormField $field )
$field Symfony\Component\DomCrawler\Field\FormField The field
    public function set(FormField $field)
    {
        $this->fields->add($field);
    }

Usage Example

Example #1
0
 /**
  * @param integer $value
  * @return $this
  */
 protected function setStatus($value)
 {
     $status = $this->form->get('field_issue_status[und]');
     $status->setValue($value);
     $this->form->set($status);
     return $this;
 }
All Usage Examples Of Symfony\Component\DomCrawler\Form::set