i5bf3a
Last Updated: February 25, 2016
·
950
· jverdeyen
E40b946f8a5d22e9c61629df7ab0111c

Symfony2 Forms: Disable all fields

use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class XAdminType extends ..

public function setDefaultOptions(OptionsResolverInterface $resolver)
{
    $resolver->setDefaults(array(
        'disabled' => true,
    ));
}
Say Thanks
Respond