public function CheckoutOrderManagerInterface::getCheckoutStepId in Commerce Core 8.2
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.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
string $requested_step_id: (Optional) The requested step ID.
Return value
string The checkout step ID.
1 method overrides CheckoutOrderManagerInterface::getCheckoutStepId()
- CheckoutOrderManager::getCheckoutStepId in modules/
checkout/ src/ CheckoutOrderManager.php - Gets the order's checkout step ID.
File
- modules/
checkout/ src/ CheckoutOrderManagerInterface.php, line 38
Class
- CheckoutOrderManagerInterface
- Provides functionality for handling an order's checkout.
Namespace
Drupal\commerce_checkoutCode
public function getCheckoutStepId(OrderInterface $order, $requested_step_id = NULL);