public function OrderSummary::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/ OrderSummary.php, line 31
Class
- OrderSummary
- Provides the Order summary pane.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutPaneCode
public function buildConfigurationSummary() {
if ($this->configuration['view']) {
$view_storage = $this->entityTypeManager
->getStorage('view');
$view = $view_storage
->load($this->configuration['view']);
if ($view) {
return $this
->t('View: @view', [
'@view' => $view
->label(),
]);
}
}
else {
return $this
->t('View: Not used');
}
}