Elcodi\Store\CartBundle\Form\Type\CartType::buildForm PHP Method

buildForm() public method

Buildform function
public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface the formBuilder
$options array the options for this form
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder->add('cartLines', 'collection', ['type' => 'store_cart_form_type_cart_line', 'required' => true, 'label' => false])->add('update', 'submit', ['label' => 'Update basket'])->setAction($this->router->generate('store_cart_update'));
    }