You are here

private function OrderFields::getFormDisplay in Commerce Checkout Order Fields 8

Gets the form.

Return value

\Drupal\Core\Entity\Display\EntityFormDisplayInterface The form display.

1 call to OrderFields::getFormDisplay()
OrderFields::buildPaneSummary in src/Plugin/Commerce/CheckoutPane/OrderFields.php
Builds a summary of the pane values.

File

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

Class

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

Namespace

Drupal\commerce_checkout_order_fields\Plugin\Commerce\CheckoutPane

Code

private function getFormDisplay() {
  $display = EntityFormDisplay::collectRenderDisplay($this->order, $this
    ->getDerivativeId());
  $display
    ->removeComponent('coupons');
  return $display;
}