You are here

private static function FormFieldRegistry::create in Zircon Profile 8.0

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

Creates an instance of the class.

This function is made private because it allows overriding the $base and the $values properties without any type checking.

Parameters

string $base The fully qualified name of the base field:

array $values The values of the fields:

Return value

FormFieldRegistry

1 call to FormFieldRegistry::create()
FormFieldRegistry::set in vendor/symfony/dom-crawler/FormFieldRegistry.php
Set the value of a field and its children.

File

vendor/symfony/dom-crawler/FormFieldRegistry.php, line 160

Class

FormFieldRegistry
This is an internal class that must not be used directly.

Namespace

Symfony\Component\DomCrawler

Code

private static function create($base, array $values) {
  $registry = new static();
  $registry->base = $base;
  $registry->fields = $values;
  return $registry;
}