You are here

protected function CartManager::resetCheckoutStep in Commerce Core 8.2

Resets the checkout step.

Parameters

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

4 calls to CartManager::resetCheckoutStep()
CartManager::addOrderItem in modules/cart/src/CartManager.php
Adds the given order item to the given cart order.
CartManager::emptyCart in modules/cart/src/CartManager.php
Empties the given cart order.
CartManager::removeOrderItem in modules/cart/src/CartManager.php
Removes the given order item from the cart order.
CartManager::updateOrderItem in modules/cart/src/CartManager.php
Updates the given order item.

File

modules/cart/src/CartManager.php, line 180

Class

CartManager
Default implementation of the cart manager.

Namespace

Drupal\commerce_cart

Code

protected function resetCheckoutStep(OrderInterface $cart) {
  if ($cart
    ->hasField('checkout_step')) {
    $cart
      ->set('checkout_step', '');
  }
}