FormConfigInterface
interface FormConfigInterface
The configuration of a {@link Form} object.
Methods
Returns the event dispatcher used to dispatch form events.
Returns the name of the form used as HTTP parameter.
Returns the property path that the form should be mapped to.
Returns whether the form should be mapped to an element of its parent's data.
Returns whether the form's data should be modified by reference.
Returns whether the form should read and write the data of its parent.
Returns whether the form is compound.
Returns the form types used to construct the form.
Returns the view transformers of the form.
Returns the model transformers of the form.
Returns the data mapper of the form.
Returns whether the form is required.
Returns whether the form is disabled.
Returns whether errors attached to the form will bubble to its parent.
Returns the data that should be returned when the form is empty.
Returns additional attributes of the form.
Returns whether the attribute with the given name exists.
Returns the value of the given attribute.
Returns the initial data of the form.
Returns the class of the form data or null if the data is scalar or an array.
Returns whether the form's data is locked.
Returns the form factory used for creating new forms.
Returns the target URL of the form.
Returns the HTTP method used by the form.
Returns the request handler used by the form.
Returns whether the form should be initialized upon creation.
Returns all options passed during the construction of the form.
Returns whether a specific option exists.
Returns the value of a specific option.
Details
at line line 29
EventDispatcherInterface
getEventDispatcher()
Returns the event dispatcher used to dispatch form events.
at line line 36
string
getName()
Returns the name of the form used as HTTP parameter.
at line line 43
null|PropertyPathInterface
getPropertyPath()
Returns the property path that the form should be mapped to.
at line line 51
bool
getMapped()
Returns whether the form should be mapped to an element of its parent's data.
at line line 58
bool
getByReference()
Returns whether the form's data should be modified by reference.
at line line 65
bool
getInheritData()
Returns whether the form should read and write the data of its parent.
at line line 76
bool
getCompound()
Returns whether the form is compound.
This property is independent of whether the form actually has children. A form can be compound and have no children at all, like for example an empty collection form.
at line line 83
ResolvedFormTypeInterface
getType()
Returns the form types used to construct the form.
at line line 90
DataTransformerInterface[]
getViewTransformers()
Returns the view transformers of the form.
at line line 97
DataTransformerInterface[]
getModelTransformers()
Returns the model transformers of the form.
at line line 104
DataMapperInterface
getDataMapper()
Returns the data mapper of the form.
at line line 111
bool
getRequired()
Returns whether the form is required.
at line line 118
bool
getDisabled()
Returns whether the form is disabled.
at line line 125
bool
getErrorBubbling()
Returns whether errors attached to the form will bubble to its parent.
at line line 132
mixed
getEmptyData()
Returns the data that should be returned when the form is empty.
at line line 139
array
getAttributes()
Returns additional attributes of the form.
at line line 148
bool
hasAttribute(string $name)
Returns whether the attribute with the given name exists.
at line line 158
mixed
getAttribute(string $name, mixed $default = null)
Returns the value of the given attribute.
at line line 165
mixed
getData()
Returns the initial data of the form.
at line line 172
string
getDataClass()
Returns the class of the form data or null if the data is scalar or an array.
at line line 183
bool
getDataLocked()
Returns whether the form's data is locked.
A form with locked data is restricted to the data passed in this configuration. The data can only be modified then by submitting the form.
at line line 190
FormFactoryInterface
getFormFactory()
Returns the form factory used for creating new forms.
at line line 197
string
getAction()
Returns the target URL of the form.
at line line 204
string
getMethod()
Returns the HTTP method used by the form.
at line line 211
RequestHandlerInterface
getRequestHandler()
Returns the request handler used by the form.
at line line 219
bool
getAutoInitialize()
Returns whether the form should be initialized upon creation.
at line line 226
array
getOptions()
Returns all options passed during the construction of the form.
at line line 235
bool
hasOption(string $name)
Returns whether a specific option exists.
at line line 245
mixed
getOption(string $name, mixed $default = null)
Returns the value of a specific option.