You are here

public function CartManagerInterface::completeSale in Ubercart 8.4

Completes a sale, including adjusting order status and creating an account.

Parameters

\Drupal\uc_order\OrderInterface $order: The order entity that has just been completed.

bool $login: TRUE if the user should be logged in (where configured), FALSE otherwise.

Return value

array A render array for the default order completion page.

1 method overrides CartManagerInterface::completeSale()
CartManager::completeSale in uc_cart/src/CartManager.php
Completes a sale, including adjusting order status and creating an account.

File

uc_cart/src/CartManagerInterface.php, line 42

Class

CartManagerInterface
Defines a common interface for cart managers.

Namespace

Drupal\uc_cart

Code

public function completeSale(OrderInterface $order, $login = TRUE);