FormConfigBuilderInterface::setAttributes()

FormConfigBuilderInterface setAttributes(array $attributes) Sets the attributes. Parameters array $attributes The attributes Return Value FormConfigBuilderInterface The configuration object

FormConfigBuilderInterface::resetModelTransformers()

FormConfigBuilderInterface resetModelTransformers() Clears the normalization transformers. Return Value FormConfigBuilderInterface The configuration object

FormConfigBuilderInterface::getFormConfig()

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

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

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

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

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

FormConfigBuilderInterface

interface FormConfigBuilderInterface implements FormConfigInterface 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 should b

FormConfigBuilder::validateName()

static validateName(string|int $name) Validates whether the given variable is a valid form name. Parameters string|int $name The tested form name Exceptions UnexpectedTypeException If the name is not a string or an integer. InvalidArgumentException If the name contains invalid characters.

FormConfigBuilder::setType()

FormConfigBuilderInterface setType(ResolvedFormTypeInterface $type) Set the types. Parameters ResolvedFormTypeInterface $type The type of the form Return Value FormConfigBuilderInterface The configuration object