function hook_uc_cart_item_delete in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_cart/uc_cart.api.php \hook_uc_cart_item_delete()
Act on cart item entities when deleted.
Parameters
\Drupal\uc_cart\CartItemInterface $entity: The cart item entity object.
1 function implements hook_uc_cart_item_delete()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- uc_cart_entity_test_uc_cart_item_delete in uc_cart/
tests/ modules/ uc_cart_entity_test/ uc_cart_entity_test.module - Implements hook_uc_cart_item_delete().
File
- uc_cart/
uc_cart.api.php, line 201 - Hooks provided by the Cart module.
Code
function hook_uc_cart_item_delete(CartItemInterface $entity) {
\Drupal::messenger()
->addMessage(t('An item was deleted from your cart'));
}