buildForm() public method

public buildForm ( Symfony\Component\Form\FormBuilderInterface $builder, array $options )
$builder Symfony\Component\Form\FormBuilderInterface
$options array
 /**
  * {@inheritdoc}
  */
 public function buildForm(FormBuilderInterface $builder, array $options)
 {
     parent::buildForm($builder, $options);
     $builder->add('price', 'sylius_money', ['label' => 'sylius.form.variant.price'])->add('originalPrice', 'sylius_money', ['required' => false, 'label' => 'sylius.form.variant.original_price'])->add('tracked', 'checkbox', ['label' => 'sylius.form.variant.tracked'])->add('onHand', 'integer', ['label' => 'sylius.form.variant.on_hand'])->add('width', 'number', ['required' => false, 'label' => 'sylius.form.variant.width'])->add('height', 'number', ['required' => false, 'label' => 'sylius.form.variant.height'])->add('depth', 'number', ['required' => false, 'label' => 'sylius.form.variant.depth'])->add('weight', 'number', ['required' => false, 'label' => 'sylius.form.variant.weight'])->add('taxCategory', 'sylius_tax_category_choice', ['required' => false, 'empty_value' => '---', 'label' => 'sylius.form.product_variant.tax_category']);
 }