public function CouponRedemption::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/
promotion/ src/ Plugin/ Commerce/ CheckoutPane/ CouponRedemption.php, line 79
Class
- CouponRedemption
- Provides the coupon redemption pane.
Namespace
Drupal\commerce_promotion\Plugin\Commerce\CheckoutPaneCode
public function buildConfigurationSummary() {
if ($this->configuration['allow_multiple']) {
$summary = $this
->t('Allows multiple coupons: Yes');
}
else {
$summary = $this
->t('Allows multiple coupons: No');
}
return $summary;
}