You are here

public function ContactInformation::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/checkout/src/Plugin/Commerce/CheckoutPane/ContactInformation.php, line 31

Class

ContactInformation
Provides the contact information pane.

Namespace

Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane

Code

public function buildConfigurationSummary() {
  if (!empty($this->configuration['double_entry'])) {
    $summary = $this
      ->t('Require double entry of email: Yes');
  }
  else {
    $summary = $this
      ->t('Require double entry of email: No');
  }
  return $summary;
}