You are here

function template_preprocess_uc_cart_checkout_buttons in Ubercart 8.4

Prepares variables for the cart checkout buttons template.

Default template: uc-cart-checkout-buttons.html.twig.

File

uc_cart/uc_cart.module, line 155
Handles all things concerning Ubercart's shopping cart.

Code

function template_preprocess_uc_cart_checkout_buttons(&$variables) {
  $buttons = [];
  foreach (Element::children($variables['buttons']) as $button) {
    $buttons[] = $variables['buttons'][$button];
  }
  $variables['buttons'] = $buttons;
}