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

Breadcrumb

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

function NodeElement::setValue

Sets the value of the form field.

Calling this method on other elements than form fields is not allowed.

Parameters

string|bool|array $value:

Return value

void

See also

NodeElement::getValue for the format of the value for each type of field

File

vendor/behat/mink/src/Element/NodeElement.php, line 116

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function setValue($value) {
    $this->getDriver()
        ->setValue($this->getXpath(), $value);
}

API Navigation

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