Skip to content

Product: PredeleteΒΆ

Available since: 1.0.0

Provided tokens

Token Description
[commerce_product] The product entity. This is not the variation.
[event] The event.
[event:machine_name] The machine name of the ECA event.
[session_user] The user account that dispatched the event, regardless if ECA is processing models under a different account.

Reacts before a product is deleted. The entity still exists at this point. The [commerce_product] token provides the product entity about to be deleted.