You are here

public function Form::offsetGet in Zircon Profile 8

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

Gets the value of a field.

Parameters

string $name The field name:

Return value

FormField The associated Field instance

Throws

\InvalidArgumentException if the field does not exist

File

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

Class

Form
Form represents an HTML form.

Namespace

Symfony\Component\DomCrawler

Code

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