You are here

public function Products::productSelectClose in Ubercart 8.4

Hides the form to add another product to the order.

File

uc_order/src/Plugin/Ubercart/OrderPane/Products.php, line 492

Class

Products
Manage the products an order contains.

Namespace

Drupal\uc_order\Plugin\Ubercart\OrderPane

Code

public function productSelectClose($form, FormStateInterface $form_state) {
  $form_state
    ->set('products_action', NULL);
  $form_state
    ->set('refresh_products', NULL);
  $form_state
    ->set('product_select_options', NULL);
  $form_state
    ->setRebuild();
}