You are here

public function Form::setValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Form.php \Symfony\Component\DomCrawler\Form::setValues()

Sets the value of the fields.

Parameters

array $values An array of field values:

Return value

Form

File

vendor/symfony/dom-crawler/Form.php, line 74

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function setValues(array $values) {
  foreach ($values as $name => $value) {
    $this->fields
      ->set($name, $value);
  }
  return $this;
}