You are here

public function Client::submit in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::submit()

Submits a form.

Parameters

Form $form A Form instance:

array $values An array of form field values:

Return value

Crawler

1 call to Client::submit()
Client::click in vendor/symfony/browser-kit/Client.php
Clicks on a given link.

File

vendor/symfony/browser-kit/Client.php, line 239

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

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