You are here

public function CustomerInfo::submitForm in Ubercart 8.4

Form submission handler.

Parameters

\Drupal\uc_order\OrderInterface $order: The order that is being viewed.

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides EditableOrderPanePluginInterface::submitForm

File

uc_order/src/Plugin/Ubercart/OrderPane/CustomerInfo.php, line 108

Class

CustomerInfo
Manage the information for the customer's user account.

Namespace

Drupal\uc_order\Plugin\Ubercart\OrderPane

Code

public function submitForm(OrderInterface $order, array &$form, FormStateInterface $form_state) {
  $order
    ->setOwnerId($form_state
    ->getValue('uid'));
  $order
    ->setEmail($form_state
    ->getValue('primary_email'));
}