function hook_uc_order_product_presave in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_order/uc_order.api.php \hook_uc_order_product_presave()
Acts on an order product being inserted or updated.
This hook is invoked before the order product is saved to the database.
Parameters
\Drupal\uc_order\OrderProductInterface $order_product: The order product that is being inserted or updated.
See also
File
- uc_order/
uc_order.api.php, line 163 - Hooks provided by the Order module.
Code
function hook_uc_order_product_presave(OrderProductInterface $order_product) {
$order_product->name = 'foo';
}