You are here

public function OrderFields::validatePaneForm in Commerce Checkout Order Fields 8

Validates the 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::validatePaneForm

File

src/Plugin/Commerce/CheckoutPane/OrderFields.php, line 111

Class

OrderFields
Exposes the "Checkout" form view mode during checkout.

Namespace

Drupal\commerce_checkout_order_fields\Plugin\Commerce\CheckoutPane

Code

public function validatePaneForm(array &$pane_form, FormStateInterface $form_state, array &$complete_form) {
  $this
    ->getFormDisplay()
    ->extractFormValues($this->order, $pane_form, $form_state);
  $this
    ->getFormDisplay()
    ->validateFormValues($this->order, $pane_form, $form_state);
  parent::validatePaneForm($pane_form, $form_state, $complete_form);
}