You are here

protected function CheckoutFlowWithPanesBase::getTableRegions in Commerce Core 8.2

Get the regions for the checkout pane overview table.

Return value

array The table regions, keyed by step ID.

2 calls to CheckoutFlowWithPanesBase::getTableRegions()
CheckoutFlowWithPanesBase::buildConfigurationForm in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
Form constructor.
CheckoutFlowWithPanesBase::buildPaneRow in modules/checkout/src/Plugin/Commerce/CheckoutFlow/CheckoutFlowWithPanesBase.php
Builds the table row structure for a checkout pane.

File

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

Class

CheckoutFlowWithPanesBase
Provides a base checkout flow that uses checkout panes.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutFlow

Code

protected function getTableRegions() {
  $regions = [];
  foreach ($this
    ->getSteps() as $step_id => $step) {
    $regions[$step_id] = [
      'title' => $step['label'],
      'message' => $this
        ->t('No pane is displayed.'),
    ];
  }
  $regions['_sidebar'] = [
    'title' => $this
      ->t('Sidebar'),
    'message' => $this
      ->t('No pane is displayed.'),
  ];
  $regions['_disabled'] = [
    'title' => $this
      ->t('Disabled', [], [
      'context' => 'Plural',
    ]),
    'message' => $this
      ->t('No pane is disabled.'),
  ];
  return $regions;
}