コード例 #1
0
 /**
  * {@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'));
 }
コード例 #2
0
 /**
  * {@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']);
 }