public function buildForm(FormBuilderInterface $builder, array $options)
    {
        foreach ($options['button_groups'] as $name => $config) {
            $builder->add($name, ButtonGroupType::class, $config);
        }
    }
public function buildForm(FormBuilderInterface $builder, array $options)
    {
        foreach ($options['button_groups'] as $name => $config) {
            $builder->add($name, ButtonGroupType::class, $config);
        }
    }
public function buildForm ( FormBuilderInterface $ builder , array $ options ) { foreach ( $ options [ 'button_groups' ] as $ name => $ config ) { $ builder -> add ( $ name , ButtonGroupType :: class , $ config ) ; } }
Pull all group of button into the form.

{@inheritdoc}
Pull all group of button into the form .