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

Breadcrumb

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

function Form::offsetSet

Sets the value of a field.

Parameters

string $name The field name:

string|array $value The value of the field:

Throws

\InvalidArgumentException if the field does not exist

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function offsetSet(mixed $name, mixed $value) : void {
    $this->fields
        ->set($name, $value);
}
RSS feed
Powered by Drupal