FormConfigBuilder::getAutoInitialize()

bool getAutoInitialize() Returns whether the form should be initialized upon creation. Return Value bool Returns true if the form should be initialized when created, false otherwise.

FormConfigBuilder::getAttributes()

array getAttributes() Returns additional attributes of the form. Return Value array An array of key-value combinations

FormConfigBuilder::addModelTransformer()

FormConfigBuilderInterface addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false) Prepends / appends a transformer to the normalization transformer chain. The transform method of the transformer is used to convert data from the model to the normalized format. The reverseTransform method of the transformer is used to convert from the normalized to the model format. Parameters DataTransformerInterface $modelTransformer bool $forceAppend if se

FormConfigBuilder::addEventListener()

FormConfigBuilderInterface addEventListener(string $eventName, callable $listener, int $priority) Adds an event listener to an event on this form. Parameters string $eventName The name of the event to listen to callable $listener The listener to execute int $priority The priority of the listener. Listeners with a higher priority are called before listeners with a lower priority. Return Value FormConfigBuilderInterface The configuration object

FormConfigBuilder::addViewTransformer()

FormConfigBuilderInterface addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false) Appends / prepends a transformer to the view transformer chain. The transform method of the transformer is used to convert data from the normalized to the view format. The reverseTransform method of the transformer is used to convert from the view to the normalized format. Parameters DataTransformerInterface $viewTransformer bool $forcePrepend if set to true, p

FormConfigBuilder::addEventSubscriber()

FormConfigBuilderInterface addEventSubscriber(EventSubscriberInterface $subscriber) Adds an event subscriber for events on this form. Parameters EventSubscriberInterface $subscriber The subscriber to attach Return Value FormConfigBuilderInterface The configuration object

FormConfigBuilder

class FormConfigBuilder implements FormConfigBuilderInterface A basic form configuration. Methods __construct(string|int $name, string $dataClass, EventDispatcherInterface $dispatcher, array $options = array()) Creates an empty form configuration. FormConfigBuilderInterface addEventListener(string $eventName, callable $listener, int $priority) Adds an event listener to an event on this form. FormConfigBuilderInterface addEventSubscriber(EventSubscriberInterface $subscriber) Add

FormBuilderInterface::remove()

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

FormBuilderInterface::has()

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

FormBuilderInterface::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