You are here

public function PaymentProcess::buildConfigurationSummary in Commerce Core 8.2

Builds a summary of the pane configuration.

Complements the methods provided by PluginFormInterface, allowing the checkout flow form to provide a summary of pane configuration.

Return value

string An HTML summary of the pane configuration.

Overrides CheckoutPaneBase::buildConfigurationSummary

File

modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php, line 99

Class

PaymentProcess
Provides the payment process pane.

Namespace

Drupal\commerce_payment\Plugin\Commerce\CheckoutPane

Code

public function buildConfigurationSummary() {
  if (!empty($this->configuration['capture'])) {
    $summary = $this
      ->t('Transaction mode: Authorize and capture');
  }
  else {
    $summary = $this
      ->t('Transaction mode: Authorize only');
  }
  return $summary;
}