/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options = array()) { parent::buildForm($builder, $options); $builder->add('firstName', 'text', array('label' => 'sylius.form.customer.first_name'))->add('lastName', 'text', array('label' => 'sylius.form.customer.last_name')); }
/** * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options = []) { parent::buildForm($builder, $options); $builder->add('firstName', 'text', ['label' => 'sylius.form.customer.first_name'])->add('lastName', 'text', ['label' => 'sylius.form.customer.last_name'])->add('phoneNumber', 'text', ['required' => false, 'label' => 'sylius.form.customer.phone_number']); }