You are here

protected function CheckoutFlowWithPanesBase::isStepVisible in Commerce Core 8.2

Gets whether the given step is visible.

Parameters

string $step_id: The step ID.

Return value

bool TRUE if the step is visible, FALSE otherwise.

Overrides CheckoutFlowBase::isStepVisible

File

modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php, line 130

Class

CheckoutFlowWithPanesBase
Provides a base checkout flow that uses checkout panes.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow

Code

protected function isStepVisible($step_id) {

  // A step is visible if it has at least one visible pane.
  return !empty($this
    ->getVisiblePanes($step_id));
}