public function Form::getValues in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Form.php \Symfony\Component\DomCrawler\Form::getValues()
Gets the field values.
The returned array does not include file fields (
Return value
array An array of field values.
See also
getFiles).
2 calls to Form::getValues()
- Form::getPhpValues in vendor/symfony/ dom-crawler/ Form.php 
- Gets the field values as PHP.
- Form::getUri in vendor/symfony/ dom-crawler/ Form.php 
- Gets the URI of the form.
File
- vendor/symfony/ dom-crawler/ Form.php, line 90 
Class
- Form
- Form represents an HTML form.
Namespace
Symfony\Component\DomCrawlerCode
public function getValues() {
  $values = array();
  foreach ($this->fields
    ->all() as $name => $field) {
    if ($field
      ->isDisabled()) {
      continue;
    }
    if (!$field instanceof Field\FileFormField && $field
      ->hasValue()) {
      $values[$name] = $field
        ->getValue();
    }
  }
  return $values;
}