FormType::getBlockPrefix()

string getBlockPrefix() Returns the prefix of the template block name for this type. The block prefix defaults to the underscored short class name with the "Type" suffix removed (e.g. "UserProfileType" => "user_profile"). Return Value string The prefix of the template block 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

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

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

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

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

FormRendererInterface::renderBlock()

string renderBlock(FormView $view, string $blockName, array $variables = array()) Renders a named block of the form theme. Parameters FormView $view The view for which to render the block string $blockName The name of the block array $variables The variables to pass to the template Return Value string The HTML markup