Elcodi\Store\UserBundle\Form\Type\PasswordRecoverType::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->setMethod('POST')->add('password', 'repeated', ['type' => 'password', 'first_options' => ['label' => 'store.recovery.form.fields.password.label'], 'second_options' => ['label' => 'store.recovery.form.fields.repeat_password.label'], 'required' => true])->add('send', 'submit', ['label' => 'store.recovery.form.fields.send.label']);
    }