You are here

public function Form::get in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dom-crawler/Form.php \Symfony\Component\DomCrawler\Form::get()

Gets a named field.

Parameters

string $name The field name:

Return value

FormField The field instance

Throws

\InvalidArgumentException When field is not present in this form

1 call to Form::get()
Form::addField in vendor/symfony/dom-crawler/Form.php

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

public function get($name) {
  return $this->fields
    ->get($name);
}