You are here

public function CheckoutFlowInterface::getSteps in Commerce Core 8.2

Gets the defined steps.

Return value

array An array of step definitions, keyed by step ID. Possible keys:

  • label: The label of the step.
  • previous_label: The label shown on the button that returns the customer back to this step.
  • next_label: The label shown on the button that sends the customer to this step.
  • has_sidebar: Whether the step has a sidebar.
  • hidden: Whether the step is hidden. Hidden steps aren't shown in the checkout progress block until they are reached.

Note: If the previous_label or next_label keys are missing, the corresponding buttons will not be shown to the customer.

1 method overrides CheckoutFlowInterface::getSteps()
CheckoutFlowBase::getSteps in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php
Gets the defined steps.

File

modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowInterface.php, line 88

Class

CheckoutFlowInterface
Places an order through a series of steps.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow

Code

public function getSteps();