Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Form.php

function Form::setValues

Sets the value of the fields.

Parameters

array $values An array of field values:

Return value

$this

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function setValues(array $values) : static {
    foreach ($values as $name => $value) {
        $this->fields
            ->set($name, $value);
    }
    return $this;
}
RSS feed
Powered by Drupal