public function CheckoutFlowInterface::getPreviousStepId in Commerce Core 8.2
Gets the previous step ID for the given step ID.
Note that we’re not calling getVisibleSteps() on purpose here to bypass its static caching which may no longer be valid due to previous panes altering the order.
Parameters
string $step_id: The step ID.
Return value
string|null The previous step, or NULL if there is none.
1 method overrides CheckoutFlowInterface::getPreviousStepId()
- CheckoutFlowBase::getPreviousStepId in modules/
checkout/ src/ Plugin/ Commerce/ CheckoutFlow/ CheckoutFlowBase.php - Gets the previous step ID for the given step ID.
File
- modules/
checkout/ src/ Plugin/ Commerce/ CheckoutFlow/ CheckoutFlowInterface.php, line 43
Class
- CheckoutFlowInterface
- Places an order through a series of steps.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlowCode
public function getPreviousStepId($step_id);