public function BillingInformation::buildPaneSummary in Commerce Core 8.2
Builds a summary of the pane values.
Important: The review pane shows summaries for both visible and non-visible panes. To skip showing a summary for a non-visible pane, check isVisible() and return an empty array.
Return value
array A render array containing the summary of the pane values.
Overrides CheckoutPaneBase::buildPaneSummary
File
- modules/
checkout/ src/ Plugin/ Commerce/ CheckoutPane/ BillingInformation.php, line 69
Class
- BillingInformation
- Provides the billing information pane.
Namespace
Drupal\commerce_checkout\Plugin\Commerce\CheckoutPaneCode
public function buildPaneSummary() {
$summary = [];
if ($profile = $this->order
->getBillingProfile()) {
$profile_view_builder = $this->entityTypeManager
->getViewBuilder('profile');
$summary = $profile_view_builder
->view($profile, 'default');
}
return $summary;
}