Symfony2: Accessing form field attributes

Recently when creating a form within Symfony2 I came across the need to get the label of a form field, before having called createView(). After a bit of digging around it turns out you can use the following: <?php…