FormBuilderInterface::getForm()

FormInterface getForm() Creates the form. Return Value FormInterface The form

FormBuilderInterface::all()

array all() Returns the children. Return Value array

FormBuilderInterface::add()

FormBuilderInterface add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array()) Adds a new field to this group. A field must have a unique name within the group. Otherwise the existing field is overwritten. If you add a nested group, this group should also be represented in the object hierarchy. Parameters string|int|FormBuilderInterface $child string|null $type array $options Return Value FormBuilderInterface The builder object

FormBuilderInterface

interface FormBuilderInterface implements Iterator, FormBuilderInterface Methods EventDispatcherInterface getEventDispatcher() Returns the event dispatcher used to dispatch form events. from FormConfigInterface string getName() Returns the name of the form used as HTTP parameter. from FormConfigInterface null|PropertyPathInterface getPropertyPath() Returns the property path that the form should be mapped to. from FormConfigInterface bool getMapped() Returns whether the form sho

FormBuilderInterface

interface FormBuilderInterface implements Traversable, Countable, FormConfigBuilderInterface Methods EventDispatcherInterface getEventDispatcher() Returns the event dispatcher used to dispatch form events. from FormConfigInterface string getName() Returns the name of the form used as HTTP parameter. from FormConfigInterface null|PropertyPathInterface getPropertyPath() Returns the property path that the form should be mapped to. from FormConfigInterface bool getMapped() Returns

FormBuilder::getFormConfig()

FormConfigInterface getFormConfig() Builds and returns the form configuration. Return Value FormConfigInterface

FormBuilder::getIterator()

FormBuilderInterface[] getIterator() {@inheritdoc} Return Value FormBuilderInterface[]

FormBuilder::remove()

FormBuilderInterface remove(string $name) Removes the field with the given name. Parameters string $name Return Value FormBuilderInterface The builder object

FormBuilder::has()

bool has(string $name) Returns whether a field with the given name exists. Parameters string $name Return Value bool

FormBuilder::create()

FormBuilderInterface create(string $name, string|null $type = null, array $options = array()) Creates a form builder. Parameters string $name The name of the form or the name of the property string|null $type The type of the form or null if name is a property array $options The options Return Value FormBuilderInterface The created builder