You are here

public function ContactInformation::submitPaneForm in Commerce Core 8.2

Handles the submission of an pane form.

Parameters

array $pane_form: The pane form.

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

array $complete_form: The complete form structure.

Overrides CheckoutPaneBase::submitPaneForm

File

modules/checkout/src/Plugin/Commerce/CheckoutPane/ContactInformation.php, line 121

Class

ContactInformation
Provides the contact information pane.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane

Code

public function submitPaneForm(array &$pane_form, FormStateInterface $form_state, array &$complete_form) {
  $values = $form_state
    ->getValue($pane_form['#parents']);
  $this->order
    ->setEmail($values['email']);
}