FormType::buildForm()

buildForm(FormBuilderInterface $builder, array $options) Builds the form. This method is called for each type in the hierarchy starting from the top most type. Type extensions can further modify the form. Parameters FormBuilderInterface $builder The form builder array $options The options

FormType

class FormType extends BaseType Methods buildForm(FormBuilderInterface $builder, array $options) Builds the form. buildView(FormView $view, FormInterface $form, array $options) Builds the form view. finishView(FormView $view, FormInterface $form, array $options) Finishes the form view. configureOptions(OptionsResolver $resolver) Configures the options for this type. string getBlockPrefix() Returns the prefix of the template block name for this type. string|null get

FormThemeTokenParser::parse()

Twig_Node parse(Twig_Token $token) Parses a token and returns a node. Parameters Twig_Token $token A Twig_Token instance Return Value Twig_Node A Twig_Node instance

FormThemeTokenParser::getTag()

string getTag() Gets the tag name associated with this token parser. Return Value string The tag name

FormThemeTokenParser

class FormThemeTokenParser extends Twig_TokenParser Token Parser for the 'form_theme' tag. Methods Twig_Node parse(Twig_Token $token) Parses a token and returns a node. string getTag() Gets the tag name associated with this token parser. Details Twig_Node parse(Twig_Token $token) Parses a token and returns a node. Parameters Twig_Token $token A Twig_Token instance Return Value Twig_Node A Twig_Node instance stri

FormThemeNode

class FormThemeNode extends Twig_Node Methods __construct(Twig_Node $form, Twig_Node $resources, $lineno, $tag = null) compile(Twig_Compiler $compiler) Compiles the node to PHP. Details __construct(Twig_Node $form, Twig_Node $resources, $lineno, $tag = null) Parameters Twig_Node $form Twig_Node $resources $lineno $tag compile(Twig_Compiler $compiler) Compiles the node to PHP. Parameters Tw

Forms::createFormFactoryBuilder()

static FormFactoryBuilderInterface createFormFactoryBuilder() Creates a form factory builder with the default configuration. Return Value FormFactoryBuilderInterface The form factory builder

Forms::createFormFactory()

static FormFactoryInterface createFormFactory() Creates a form factory with the default configuration. Return Value FormFactoryInterface The form factory

Forms

class Forms Entry point of the Form component. Use this class to conveniently create new form factories: use Symfony\Component\Form\Forms; $formFactory = Forms::createFormFactory(); $form = $formFactory->createBuilder() ->add('firstName', 'Symfony\Component\Form\Extension\Core\Type\TextType') ->add('lastName', 'Symfony\Component\Form\Extension\Core\Type\TextType') ->add('age', 'Symfony\Component\Form\Extension\Core\Type\IntegerType') ->add('gender', 'Symfony\Component\Form\Ex

FormRendererInterface::setTheme()

setTheme(FormView $view, mixed $themes) Sets the theme(s) to be used for rendering a view and its children. Parameters FormView $view The view to assign the theme(s) to mixed $themes The theme(s). The type of these themes is open to the implementation.