How to remove form element label in symfony forms?

Sometimes you need remove label from forms in symfony. How to do this? It`s easy, just add:

public function configure()
{
$this->widgetSchema->setLabel('field', false);
}
in form object.
Have a nice day!
public function configure() {
[...]
$this->widgetSchema->setLabel('content', false);
[...]
}

Leave a Comment: