You are here

public function CashOnDelivery::orderEditDetails in Ubercart 8.4

Called when an order is being edited with this payment method.

Parameters

\Drupal\uc_order\OrderInterface $order: The order that is being edited.

Return value

array A form array.

Overrides PaymentMethodPluginBase::orderEditDetails

File

payment/uc_payment_pack/src/Plugin/Ubercart/PaymentMethod/CashOnDelivery.php, line 140

Class

CashOnDelivery
Defines the cash on delivery payment method.

Namespace

Drupal\uc_payment_pack\Plugin\Ubercart\PaymentMethod

Code

public function orderEditDetails(OrderInterface $order) {
  $build = [];
  if ($this->configuration['delivery_date']) {
    $build = $this
      ->deliveryDateForm($order);
  }
  return $build;
}