public function OrderFields::buildPaneForm in Commerce Checkout Order Fields 8
Builds the pane form.
Parameters
array $pane_form: The pane form, containing the following basic properties:
- #parents: Identifies the position of the pane form in the overall parent form, and identifies the location where the field values are placed within $form_state->getValues().
\Drupal\Core\Form\FormStateInterface $form_state: The form state of the parent form.
array $complete_form: The complete form structure.
Overrides CheckoutPaneInterface::buildPaneForm
File
- src/
Plugin/ Commerce/ CheckoutPane/ OrderFields.php, line 103
Class
- OrderFields
- Exposes the "Checkout" form view mode during checkout.
Namespace
Drupal\commerce_checkout_order_fields\Plugin\Commerce\CheckoutPaneCode
public function buildPaneForm(array $pane_form, FormStateInterface $form_state, array &$complete_form) {
$this
->getFormDisplay()
->buildForm($this->order, $pane_form, $form_state);
return $pane_form;
}