FormTypeInterface::buildView()

buildView(FormView $view, FormInterface $form, array $options) Builds the form view. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the view. A view of a form is built before the views of the child forms are built. This means that you cannot access child views in this method. If you need to do so, move your logic to {@link finishView()} instead. Parameters FormView $view The view FormInterface $form The form

FormTypeHttpFoundationExtension

class FormTypeHttpFoundationExtension extends AbstractTypeExtension Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the view. from AbstractTypeExtension finishView(FormView $view, FormInterface $form, array $options) Finishes the view. from AbstractTypeExtension configureOptions(OptionsResolver $resolver) Configures the options for this type. from AbstractTypeExtension _

FormTypeHttpFoundationExtension::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called after the extended type has built the form to further modify it. Parameters FormBuilderInterface $builder The form builder array $options The options

FormTypeHttpFoundationExtension::getExtendedType()

string getExtendedType() Returns the name of the type being extended. Return Value string The name of the type being extended

FormTypeGuesserInterface::guessRequired()

ValueGuess guessRequired(string $class, string $property) Returns a guess whether a property of a class is required. Parameters string $class The fully qualified class name string $property The name of the property to guess for Return Value ValueGuess A guess for the field's required setting

FormTypeGuesserInterface

interface FormTypeGuesserInterface Methods TypeGuess|null guessType(string $class, string $property) Returns a field guess for a property name of a class. ValueGuess guessRequired(string $class, string $property) Returns a guess whether a property of a class is required. ValueGuess|null guessMaxLength(string $class, string $property) Returns a guess about the field's maximum length. ValueGuess|null guessPattern(string $class, string $property) Returns a guess about the field

FormTypeGuesserInterface::guessMaxLength()

ValueGuess|null guessMaxLength(string $class, string $property) Returns a guess about the field's maximum length. Parameters string $class The fully qualified class name string $property The name of the property to guess for Return Value ValueGuess|null A guess for the field's maximum length

FormTypeGuesserInterface::guessPattern()

ValueGuess|null guessPattern(string $class, string $property) Returns a guess about the field's pattern. When you have a min value, you guess a min length of this min (LOW_CONFIDENCE) , lines below If this value is a float type, this is wrong so you guess null with MEDIUM_CONFIDENCE to override the previous guess. Example: You want a float greater than 5, 4.512313 is not valid but length(4.512314) > length(5) Parameters string $class The fully qualified class name string $

FormTypeGuesserInterface::guessType()

TypeGuess|null guessType(string $class, string $property) Returns a field guess for a property name of a class. Parameters string $class The fully qualified class name string $property The name of the property to guess for Return Value TypeGuess|null A guess for the field's type and options

FormTypeGuesserChain::guessMaxLength()

ValueGuess|null guessMaxLength(string $class, string $property) Returns a guess about the field's maximum length. Parameters string $class The fully qualified class name string $property The name of the property to guess for Return Value ValueGuess|null A guess for the field's maximum length