What does the function getName do in symfony 2 form What does the function getName do in symfony 2 form symfony symfony

What does the function getName do in symfony 2 form


It is used when rendering the twig templates for that form. It lets you override the default widgets but only for that particular form by specifying a block like, for example:

{% block sample_staticbundle_commenttype_widget %}