-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathProductEvents.php
More file actions
203 lines (179 loc) · 5.34 KB
/
ProductEvents.php
File metadata and controls
203 lines (179 loc) · 5.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<?php
namespace Drupal\commerce_product\Event;
final class ProductEvents {
/**
* Name of the event fired after loading a product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_LOAD = 'commerce_product.commerce_product.load';
/**
* Name of the event fired after creating a new product.
*
* Fired before the product is saved.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_CREATE = 'commerce_product.commerce_product.create';
/**
* Name of the event fired before saving a product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_PRESAVE = 'commerce_product.commerce_product.presave';
/**
* Name of the event fired after saving a new product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_INSERT = 'commerce_product.commerce_product.insert';
/**
* Name of the event fired after saving an existing product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_UPDATE = 'commerce_product.commerce_product.update';
/**
* Name of the event fired before deleting a product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_PREDELETE = 'commerce_product.commerce_product.predelete';
/**
* Name of the event fired after deleting a product.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_DELETE = 'commerce_product.commerce_product.delete';
/**
* Name of the event fired after saving a new product translation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_TRANSLATION_INSERT = 'commerce_product.commerce_product.translation_insert';
/**
* Name of the event fired after deleting a product translation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductEvent
*/
const PRODUCT_TRANSLATION_DELETE = 'commerce_product.commerce_product.translation_delete';
/**
* Name of the event fired after changing the product variation via ajax.
*
* Allows modules to add arbitrary ajax commands to the response returned by
* the add to cart form #ajax callback.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationAjaxChangeEvent
*/
const PRODUCT_VARIATION_AJAX_CHANGE = 'commerce_product.commerce_product_variation.ajax_change';
/**
* Name of the event fired after loading a product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_LOAD = 'commerce_product.commerce_product_variation.load';
/**
* Name of the event fired after creating a new product variation.
*
* Fired before the product variation is saved.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_CREATE = 'commerce_product.commerce_product_variation.create';
/**
* Name of the event fired before saving a product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_PRESAVE = 'commerce_product.commerce_product_variation.presave';
/**
* Name of the event fired after saving a new product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_INSERT = 'commerce_product.commerce_product_variation.insert';
/**
* Name of the event fired after saving an existing product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_UPDATE = 'commerce_product.commerce_product_variation.update';
/**
* Name of the event fired before deleting a product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_PREDELETE = 'commerce_product.commerce_product_variation.predelete';
/**
* Name of the event fired after deleting a product variation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_DELETE = 'commerce_product.commerce_product_variation.delete';
/**
* Name of the event fired after saving a new product variation translation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_TRANSLATION_INSERT = 'commerce_product.commerce_product_variation.translation_insert';
/**
* Name of the event fired after deleting a product variation translation.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationEvent
*/
const PRODUCT_VARIATION_TRANSLATION_DELETE = 'commerce_product.commerce_product_variation.translation_delete';
/**
* Name of the event fired after generating a product variation title.
*
* @Event
*
* @see \Drupal\commerce_product\Event\ProductVariationTitleGenerateEvent
*/
const PRODUCT_VARIATION_TITLE_GENERATE = 'commerce_product.commerce_product_variation.title_generate';
/**
* Name of the event fired when filtering variations.
*
* @Event
*
* @see \Drupal\commerce_product\Event\FilterVariationsEvent
*/
const FILTER_VARIATIONS = "commerce_product.filter_variations";
}