コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function submitForm(OrderInterface $order, array &$form, FormStateInterface $form_state)
 {
     $order->setOwnerId($form_state->getValue('uid'));
     $order->setEmail($form_state->getValue('primary_email'));
 }