You are here

public function OrderFields::buildConfigurationSummary in Commerce Checkout Order Fields 8

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

src/Plugin/Commerce/CheckoutPane/OrderFields.php, line 33

Class

OrderFields
Exposes the "Checkout" form view mode during checkout.

Namespace

Drupal\commerce_checkout_order_fields\Plugin\Commerce\CheckoutPane

Code

public function buildConfigurationSummary() {
  $summary[] = $this
    ->t('<p>Wrapper element: :type</p>', [
    ':type' => ucfirst($this->configuration['wrapper_element']),
  ]);
  $summary[] = $this
    ->t('<p>Display label: :label</p>', [
    ':label' => ucfirst($this->configuration['display_label']),
  ]);
  return implode('', $summary);
}