You are here

public function CheckoutPaneBase::setOrder in Commerce Core 8.2

Sets the current order.

Used to keep the pane order in sync with the checkout flow order.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order.

Return value

$this

Overrides CheckoutPaneInterface::setOrder

File

modules/checkout/src/Plugin/Commerce/CheckoutPane/CheckoutPaneBase.php, line 144

Class

CheckoutPaneBase
Provides the base checkout pane class.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane

Code

public function setOrder(OrderInterface $order) {
  $this->order = $order;
  return $this;
}