You are here

interface CheckoutOrderManagerInterface in Commerce Core 8.2

Provides functionality for handling an order's checkout.

Hierarchy

Expanded class hierarchy of CheckoutOrderManagerInterface

All classes that implement CheckoutOrderManagerInterface

3 files declare their use of CheckoutOrderManagerInterface
CheckoutController.php in modules/checkout/src/Controller/CheckoutController.php
CheckoutProgressBlock.php in modules/checkout/src/Plugin/Block/CheckoutProgressBlock.php
PaymentCheckoutController.php in modules/payment/src/Controller/PaymentCheckoutController.php

File

modules/checkout/src/CheckoutOrderManagerInterface.php, line 10

Namespace

Drupal\commerce_checkout
View source
interface CheckoutOrderManagerInterface {

  /**
   * Gets the order's checkout flow.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   *
   * @return \Drupal\commerce_checkout\Entity\CheckoutFlowInterface
   *   THe checkout flow.
   */
  public function getCheckoutFlow(OrderInterface $order);

  /**
   * Gets the order's checkout step ID.
   *
   * Ensures that the user is allowed to access the requested step ID,
   * when given. In case the requested step ID is empty, invalid, or
   * not allowed, a different step ID will be returned.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   * @param string $requested_step_id
   *   (Optional) The requested step ID.
   *
   * @return string
   *   The checkout step ID.
   */
  public function getCheckoutStepId(OrderInterface $order, $requested_step_id = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
CheckoutOrderManagerInterface::getCheckoutFlow public function Gets the order's checkout flow. 1
CheckoutOrderManagerInterface::getCheckoutStepId public function Gets the order's checkout step ID. 1