public function PayPalCheckout::getPanes in Commerce PayPal 8
Gets the panes.
Return value
\Drupal\commerce_checkout\Plugin\Commerce\CheckoutPane\CheckoutPaneInterface[] The panes, keyed by pane id, ordered by weight.
Overrides CheckoutFlowWithPanesBase::getPanes
File
- src/
Plugin/ Commerce/ CheckoutFlow/ PayPalCheckout.php, line 43
Class
- PayPalCheckout
- Provides a custom checkout flow for use by PayPal Checkout.
Namespace
Drupal\commerce_paypal\Plugin\Commerce\CheckoutFlowCode
public function getPanes() {
$panes = parent::getPanes();
// Create a blacklist of panes we disallow adding to steps.
$black_list = [
'contact_information',
'payment_information',
'payment_process',
];
return array_diff_key($panes, array_combine($black_list, $black_list));
}