function hook_uc_order_can_delete in Ubercart 8.4
Verifies whether an order may be deleted.
Parameters
\Drupal\uc_order\OrderInterface $order: An order object.
Return value
bool FALSE if the order should not be deleted.
2 functions implement hook_uc_order_can_delete()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- uc_fulfillment_uc_order_can_delete in shipping/
uc_fulfillment/ uc_fulfillment.module - Implements hook_uc_order_can_delete().
- uc_payment_uc_order_can_delete in payment/
uc_payment/ uc_payment.module - Implements hook_uc_order_can_delete().
1 invocation of hook_uc_order_can_delete()
- OrderAccessControlHandler::checkAccess in uc_order/
src/ OrderAccessControlHandler.php - Performs access checks.
File
- uc_order/
uc_order.api.php, line 85 - Hooks provided by the Order module.
Code
function hook_uc_order_can_delete(OrderInterface $order) {
if (uc_payment_load_payments($order
->id())) {
return FALSE;
}
}