FormFieldRegistry::remove()

remove(string $name) Removes a field and its children from the registry. Parameters string $name The fully qualified name of the base field

FormField::isDisabled()

bool isDisabled() Check if the current field is disabled. Return Value bool

FormField::hasValue()

bool hasValue() Returns true if the field should be included in the submitted values. Return Value bool true if the field should be included in the submitted values, false otherwise

FormField::getValue()

string|array getValue() Gets the value of the field. Return Value string|array The value of the field

FormField::setValue()

setValue(string $value) Sets the value of the field. Parameters string $value The value of the field

FormFactoryInterface::createNamed()

FormInterface createNamed(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form. Parameters string|int $name The name of the form string $type The type of the form mixed $data The initial data array $options The options Return Value FormInterface The form Exceptions InvalidOptionsException if any given option is not applicable to the given type See also createNamedBuilder()

FormField

class FormField FormField is the abstract class for all form fields. Methods __construct(DOMElement $node) Constructor. string getName() Returns the name of the field. string|array getValue() Gets the value of the field. setValue(string $value) Sets the value of the field. bool hasValue() Returns true if the field should be included in the submitted values. bool isDisabled() Check if the current field is disabled. Details __constr

FormFactoryInterface::createNamedBuilder()

FormBuilderInterface createNamedBuilder(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form builder. Parameters string|int $name The name of the form string $type The type of the form mixed $data The initial data array $options The options Return Value FormBuilderInterface The form builder Exceptions InvalidOptionsException if any given option is not applicable to the given t

FormField::getName()

string getName() Returns the name of the field. Return Value string The name of the field

FormFactoryInterface::createForProperty()

FormInterface createForProperty(string $class, string $property, mixed $data = null, array $options = array()) Returns a form for a property of a class. Parameters string $class The fully qualified class name string $property The name of the property to guess for mixed $data The initial data array $options The options for the builder Return Value FormInterface The form named after the property Exceptions InvalidOptionsException if any given option is not applicable to the form