FormConfigBuilder::getAttribute()

mixed getAttribute(string $name, mixed $default = null) Returns the value of the given attribute. Parameters string $name The attribute name mixed $default The value returned if the attribute does not exist Return Value mixed The attribute value

FormConfigBuilder::getAction()

string getAction() Returns the target URL of the form. Return Value string The target URL of the form

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

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::getForm()

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