public function Products::productSelectSubmit in Ubercart 8.4
Sets the order pane to show the add product to order form.
File
- uc_order/
src/ Plugin/ Ubercart/ OrderPane/ Products.php, line 482
Class
- Products
- Manage the products an order contains.
Namespace
Drupal\uc_order\Plugin\Ubercart\OrderPaneCode
public function productSelectSubmit($form, FormStateInterface $form_state) {
$form_state
->set('products_action', 'add_product');
$form_state
->set('node', Node::load($form_state
->getValue([
'product_controls',
'nid',
])));
$form_state
->set('refresh_products', NULL);
$form_state
->setRebuild();
}