public function Login::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/ Login.php, line 134
Class
- Login
- Provides the login pane.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutPaneCode
public function buildConfigurationSummary() {
if (!empty($this->configuration['allow_guest_checkout'])) {
$summary = $this
->t('Guest checkout: Allowed') . '<br>';
}
else {
$summary = $this
->t('Guest checkout: Not allowed') . '<br>';
}
if (!empty($this->configuration['allow_registration'])) {
$summary .= $this
->t('Registration: Allowed');
}
else {
$summary .= $this
->t('Registration: Not allowed');
}
return $summary;
}