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

Breadcrumb

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

function AbstractBrowser::submit

Submits a form.

Parameters

array $values An array of form field values:

array $serverParameters An array of server parameters:

2 calls to AbstractBrowser::submit()
AbstractBrowser::click in vendor/symfony/browser-kit/AbstractBrowser.php
Clicks on a given link.
AbstractBrowser::submitForm in vendor/symfony/browser-kit/AbstractBrowser.php
Finds the first form that contains a button with the given content and uses it to submit the given form field values.

File

vendor/symfony/browser-kit/AbstractBrowser.php, line 294

Class

AbstractBrowser
Simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function submit(Form $form, array $values = [], array $serverParameters = []) : Crawler {
    $form->setValues($values);
    return $this->request($form->getMethod(), $form->getUri(), $form->getPhpValues(), $form->getPhpFiles(), $serverParameters);
}

API Navigation

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