private function createRemovePaymentForm($action, $cancelPath)
    {
        return $this
            ->createFormBuilder(null, [
                'action' => $action,
                'attr' => [
                    'class' => 'form-horizontal',
                ],
                'method' => 'POST',
                'admin_mode' => true,
                '_redirect_enabled' => true,
            ])
            ->add('confirm', 'checkbox', [
                'label' => 'ekyna_order.payment.message.remove_confirm',
                'attr' => ['align_with_widget' => true],
                'required' => true,
                'constraints' => [
                    new Constraints\True(),
                ]
            ])
            ->add('actions', 'form_actions', [
                'buttons' => [
                    'remove' => [
                        'type' => 'submit', 'options' => [
                            'button_class' => 'danger',
                            'label' => 'ekyna_core.button.remove',
                            'attr' => [
                                'icon' => 'trash',
                            ],
                        ],
                    ],
                    'cancel' => [
                        'type' => 'button', 'options' => [
                            'label' => 'ekyna_core.button.cancel',
                            'button_class' => 'default',
                            'as_link' => true,
                            'attr' => [
                                'class' => 'form-cancel-btn',
                                'icon' => 'remove',
                                'href' => $cancelPath,
                            ],
                        ],
                    ],
                ],
            ])
            ->getForm()
        ;
    }
private function createRemovePaymentForm($action, $cancelPath)
    {
        return $this
            ->createFormBuilder(null, [
                'action' => $action,
                'attr' => [
                    'class' => 'form-horizontal',
                ],
                'method' => 'POST',
                'admin_mode' => true,
                '_redirect_enabled' => true,
            ])
            ->add('confirm', 'checkbox', [
                'label' => 'ekyna_order.payment.message.remove_confirm',
                'attr' => ['align_with_widget' => true],
                'required' => true,
                'constraints' => [
                    new Constraints\True(),
                ]
            ])
            ->add('actions', 'form_actions', [
                'buttons' => [
                    'remove' => [
                        'type' => 'submit', 'options' => [
                            'button_class' => 'danger',
                            'label' => 'ekyna_core.button.remove',
                            'attr' => [
                                'icon' => 'trash',
                            ],
                        ],
                    ],
                    'cancel' => [
                        'type' => 'button', 'options' => [
                            'label' => 'ekyna_core.button.cancel',
                            'button_class' => 'default',
                            'as_link' => true,
                            'attr' => [
                                'class' => 'form-cancel-btn',
                                'icon' => 'remove',
                                'href' => $cancelPath,
                            ],
                        ],
                    ],
                ],
            ])
            ->getForm()
        ;
    }
private function createRemovePaymentForm ( $ action , $ cancelPath ) { return $ this -> createFormBuilder ( null , [ 'action' => $ action , 'attr' => [ 'class' => 'form-horizontal' , ] , 'method' => 'POST' , 'admin_mode' => true , '_redirect_enabled' => true , ] ) -> add ( 'confirm' , 'checkbox' , [ 'label' => 'ekyna_order.payment.message.remove_confirm' , 'attr' => [ 'align_with_widget' => true ] , 'required' => true , 'constraints' => [ new Constraints \ True ( ) , ] ] ) -> add ( 'actions' , 'form_actions' , [ 'buttons' => [ 'remove' => [ 'type' => 'submit' , 'options' => [ 'button_class' => 'danger' , 'label' => 'ekyna_core.button.remove' , 'attr' => [ 'icon' => 'trash' , ] , ] , ] , 'cancel' => [ 'type' => 'button' , 'options' => [ 'label' => 'ekyna_core.button.cancel' , 'button_class' => 'default' , 'as_link' => true , 'attr' => [ 'class' => 'form-cancel-btn' , 'icon' => 'remove' , 'href' => $ cancelPath , ] , ] , ] , ] , ] ) -> getForm ( ) ; }
Creates the remove payment form.

@param string $action
@param string $cancelPath
@return \Symfony\Component\Form\Form
Creates the remove payment form .