You are here

protected function CheckoutFlowBase::hasSidebar in Commerce Core 8.2

Gets whether the given step has a sidebar.

Parameters

string $step_id: The step ID.

Return value

bool TRUE if the given step has a sidebar, FALSE otherwise.

4 calls to CheckoutFlowBase::hasSidebar()
CheckoutFlowBase::buildForm in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php
Form constructor.
CheckoutFlowWithPanesBase::buildForm in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
Form constructor.
CheckoutFlowWithPanesBase::submitForm in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
Form submission handler.
CheckoutFlowWithPanesBase::validateForm in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
Form validation handler.

File

modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowBase.php, line 443

Class

CheckoutFlowBase
Provides the base checkout flow class.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow

Code

protected function hasSidebar($step_id) {
  $steps = $this
    ->getSteps();
  return !empty($steps[$step_id]['has_sidebar']);
}