class FormFieldRegistry
This is an internal class that must not be used directly.
add(FormField $field) Adds a field to the registry. | ||
remove(string $name) Removes a field and its children from the registry. | ||
mixed | get(string $name) Returns the value of the field and its children. | |
bool | has(string $name) Tests whether the form has the given field. | |
set(string $name, mixed $value) Set the value of a field and its children. | ||
FormField[] | all() Returns the list of field with their value. |
Adds a field to the registry.
FormField | $field |
Removes a field and its children from the registry.
string | $name | The fully qualified name of the base field |
Returns the value of the field and its children.
string | $name | The fully qualified name of the field |
mixed | The value of the field |
InvalidArgumentException | if the field does not exist |
Tests whether the form has the given field.
string | $name | The fully qualified name of the field |
bool | Whether the form has the given field |
Set the value of a field and its children.
string | $name | The fully qualified name of the field |
mixed | $value | The value |
InvalidArgumentException | if the field does not exist |
Returns the list of field with their value.
FormField[] | The list of fields as array((string) Fully qualified name => (mixed) value) |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DomCrawler/FormFieldRegistry.html