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

Breadcrumb

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

function FormField::setValue

Sets the value of the field.

4 calls to FormField::setValue()
ChoiceFormField::setValue in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Sets the value of the field.
ChoiceFormField::setValue in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Sets the value of the field.
FileFormField::setFilePath in vendor/symfony/dom-crawler/Field/FileFormField.php
Sets path to the file as string for simulating HTTP request.
FileFormField::setFilePath in vendor/symfony/dom-crawler/Field/FileFormField.php
Sets path to the file as string for simulating HTTP request.
2 methods override FormField::setValue()
ChoiceFormField::setValue in vendor/symfony/dom-crawler/Field/ChoiceFormField.php
Sets the value of the field.
FileFormField::setValue in vendor/symfony/dom-crawler/Field/FileFormField.php
Sets the value of the field.

File

vendor/symfony/dom-crawler/Field/FormField.php, line 77

Class

FormField
FormField is the abstract class for all form fields.

Namespace

Symfony\Component\DomCrawler\Field

Code

public function setValue(?string $value) : void {
    $this->value = $value ?? '';
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal