Skip to content

Commit 45c31b5

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 77cfdf0 + 686ec85 commit 45c31b5

File tree

3 files changed

+485
-126
lines changed

3 files changed

+485
-126
lines changed

docs/.artifacts/commerce/5.x/events.json

Lines changed: 301 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,49 @@
11331133
}
11341134
}
11351135
},
1136+
{
1137+
"class": "craft\\commerce\\base\\Purchasable",
1138+
"name": "EVENT_DEFINE_ALT_ACTIONS",
1139+
"type": "craft\\events\\DefineAltActionsEvent",
1140+
"desc": "The event that is triggered when defining alternative form actions for the element.",
1141+
"filters": {
1142+
"duplicating": {
1143+
"label": "Element is being duplicated to a new element",
1144+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
1145+
"excludes": [
1146+
"isNew",
1147+
"resaving",
1148+
"revision"
1149+
]
1150+
},
1151+
"enabled": {
1152+
"label": "Element is enabled",
1153+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
1154+
},
1155+
"firstSave": {
1156+
"label": "Element is being saved for the first time",
1157+
"conditionsPhp": "$event->sender->firstSave",
1158+
"excludes": [
1159+
"isNew",
1160+
"draft",
1161+
"provisional",
1162+
"revision",
1163+
"resaving"
1164+
]
1165+
},
1166+
"propagating": {
1167+
"label": "Element is being propagated",
1168+
"conditionsPhp": "$event->sender->propagating"
1169+
},
1170+
"resaving": {
1171+
"label": "Element is being bulk-resaved",
1172+
"conditionsPhp": "$event->sender->resaving",
1173+
"excludes": [
1174+
"firstSave"
1175+
]
1176+
}
1177+
}
1178+
},
11361179
{
11371180
"class": "craft\\commerce\\base\\Purchasable",
11381181
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -4436,6 +4479,49 @@
44364479
}
44374480
}
44384481
},
4482+
{
4483+
"class": "craft\\commerce\\elements\\Donation",
4484+
"name": "EVENT_DEFINE_ALT_ACTIONS",
4485+
"type": "craft\\events\\DefineAltActionsEvent",
4486+
"desc": "The event that is triggered when defining alternative form actions for the element.",
4487+
"filters": {
4488+
"duplicating": {
4489+
"label": "Element is being duplicated to a new element",
4490+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
4491+
"excludes": [
4492+
"isNew",
4493+
"resaving",
4494+
"revision"
4495+
]
4496+
},
4497+
"enabled": {
4498+
"label": "Element is enabled",
4499+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
4500+
},
4501+
"firstSave": {
4502+
"label": "Element is being saved for the first time",
4503+
"conditionsPhp": "$event->sender->firstSave",
4504+
"excludes": [
4505+
"isNew",
4506+
"draft",
4507+
"provisional",
4508+
"revision",
4509+
"resaving"
4510+
]
4511+
},
4512+
"propagating": {
4513+
"label": "Element is being propagated",
4514+
"conditionsPhp": "$event->sender->propagating"
4515+
},
4516+
"resaving": {
4517+
"label": "Element is being bulk-resaved",
4518+
"conditionsPhp": "$event->sender->resaving",
4519+
"excludes": [
4520+
"firstSave"
4521+
]
4522+
}
4523+
}
4524+
},
44394525
{
44404526
"class": "craft\\commerce\\elements\\Donation",
44414527
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -7067,6 +7153,49 @@
70677153
}
70687154
}
70697155
},
7156+
{
7157+
"class": "craft\\commerce\\elements\\Order",
7158+
"name": "EVENT_DEFINE_ALT_ACTIONS",
7159+
"type": "craft\\events\\DefineAltActionsEvent",
7160+
"desc": "The event that is triggered when defining alternative form actions for the element.",
7161+
"filters": {
7162+
"duplicating": {
7163+
"label": "Element is being duplicated to a new element",
7164+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
7165+
"excludes": [
7166+
"isNew",
7167+
"resaving",
7168+
"revision"
7169+
]
7170+
},
7171+
"enabled": {
7172+
"label": "Element is enabled",
7173+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
7174+
},
7175+
"firstSave": {
7176+
"label": "Element is being saved for the first time",
7177+
"conditionsPhp": "$event->sender->firstSave",
7178+
"excludes": [
7179+
"isNew",
7180+
"draft",
7181+
"provisional",
7182+
"revision",
7183+
"resaving"
7184+
]
7185+
},
7186+
"propagating": {
7187+
"label": "Element is being propagated",
7188+
"conditionsPhp": "$event->sender->propagating"
7189+
},
7190+
"resaving": {
7191+
"label": "Element is being bulk-resaved",
7192+
"conditionsPhp": "$event->sender->resaving",
7193+
"excludes": [
7194+
"firstSave"
7195+
]
7196+
}
7197+
}
7198+
},
70707199
{
70717200
"class": "craft\\commerce\\elements\\Order",
70727201
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -9225,6 +9354,49 @@
92259354
}
92269355
}
92279356
},
9357+
{
9358+
"class": "craft\\commerce\\elements\\Product",
9359+
"name": "EVENT_DEFINE_ALT_ACTIONS",
9360+
"type": "craft\\events\\DefineAltActionsEvent",
9361+
"desc": "The event that is triggered when defining alternative form actions for the element.",
9362+
"filters": {
9363+
"duplicating": {
9364+
"label": "Element is being duplicated to a new element",
9365+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
9366+
"excludes": [
9367+
"isNew",
9368+
"resaving",
9369+
"revision"
9370+
]
9371+
},
9372+
"enabled": {
9373+
"label": "Element is enabled",
9374+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
9375+
},
9376+
"firstSave": {
9377+
"label": "Element is being saved for the first time",
9378+
"conditionsPhp": "$event->sender->firstSave",
9379+
"excludes": [
9380+
"isNew",
9381+
"draft",
9382+
"provisional",
9383+
"revision",
9384+
"resaving"
9385+
]
9386+
},
9387+
"propagating": {
9388+
"label": "Element is being propagated",
9389+
"conditionsPhp": "$event->sender->propagating"
9390+
},
9391+
"resaving": {
9392+
"label": "Element is being bulk-resaved",
9393+
"conditionsPhp": "$event->sender->resaving",
9394+
"excludes": [
9395+
"firstSave"
9396+
]
9397+
}
9398+
}
9399+
},
92289400
{
92299401
"class": "craft\\commerce\\elements\\Product",
92309402
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -11340,6 +11512,49 @@
1134011512
}
1134111513
}
1134211514
},
11515+
{
11516+
"class": "craft\\commerce\\elements\\Subscription",
11517+
"name": "EVENT_DEFINE_ALT_ACTIONS",
11518+
"type": "craft\\events\\DefineAltActionsEvent",
11519+
"desc": "The event that is triggered when defining alternative form actions for the element.",
11520+
"filters": {
11521+
"duplicating": {
11522+
"label": "Element is being duplicated to a new element",
11523+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
11524+
"excludes": [
11525+
"isNew",
11526+
"resaving",
11527+
"revision"
11528+
]
11529+
},
11530+
"enabled": {
11531+
"label": "Element is enabled",
11532+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
11533+
},
11534+
"firstSave": {
11535+
"label": "Element is being saved for the first time",
11536+
"conditionsPhp": "$event->sender->firstSave",
11537+
"excludes": [
11538+
"isNew",
11539+
"draft",
11540+
"provisional",
11541+
"revision",
11542+
"resaving"
11543+
]
11544+
},
11545+
"propagating": {
11546+
"label": "Element is being propagated",
11547+
"conditionsPhp": "$event->sender->propagating"
11548+
},
11549+
"resaving": {
11550+
"label": "Element is being bulk-resaved",
11551+
"conditionsPhp": "$event->sender->resaving",
11552+
"excludes": [
11553+
"firstSave"
11554+
]
11555+
}
11556+
}
11557+
},
1134311558
{
1134411559
"class": "craft\\commerce\\elements\\Subscription",
1134511560
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -13455,6 +13670,49 @@
1345513670
}
1345613671
}
1345713672
},
13673+
{
13674+
"class": "craft\\commerce\\elements\\Transfer",
13675+
"name": "EVENT_DEFINE_ALT_ACTIONS",
13676+
"type": "craft\\events\\DefineAltActionsEvent",
13677+
"desc": "The event that is triggered when defining alternative form actions for the element.",
13678+
"filters": {
13679+
"duplicating": {
13680+
"label": "Element is being duplicated to a new element",
13681+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
13682+
"excludes": [
13683+
"isNew",
13684+
"resaving",
13685+
"revision"
13686+
]
13687+
},
13688+
"enabled": {
13689+
"label": "Element is enabled",
13690+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
13691+
},
13692+
"firstSave": {
13693+
"label": "Element is being saved for the first time",
13694+
"conditionsPhp": "$event->sender->firstSave",
13695+
"excludes": [
13696+
"isNew",
13697+
"draft",
13698+
"provisional",
13699+
"revision",
13700+
"resaving"
13701+
]
13702+
},
13703+
"propagating": {
13704+
"label": "Element is being propagated",
13705+
"conditionsPhp": "$event->sender->propagating"
13706+
},
13707+
"resaving": {
13708+
"label": "Element is being bulk-resaved",
13709+
"conditionsPhp": "$event->sender->resaving",
13710+
"excludes": [
13711+
"firstSave"
13712+
]
13713+
}
13714+
}
13715+
},
1345813716
{
1345913717
"class": "craft\\commerce\\elements\\Transfer",
1346013718
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",
@@ -15742,6 +16000,49 @@
1574216000
}
1574316001
}
1574416002
},
16003+
{
16004+
"class": "craft\\commerce\\elements\\Variant",
16005+
"name": "EVENT_DEFINE_ALT_ACTIONS",
16006+
"type": "craft\\events\\DefineAltActionsEvent",
16007+
"desc": "The event that is triggered when defining alternative form actions for the element.",
16008+
"filters": {
16009+
"duplicating": {
16010+
"label": "Element is being duplicated to a new element",
16011+
"conditionsPhp": "($event->sender->duplicateOf && $event->sender->getIsCanonical() && !$event->sender->updatingFromDerivative)",
16012+
"excludes": [
16013+
"isNew",
16014+
"resaving",
16015+
"revision"
16016+
]
16017+
},
16018+
"enabled": {
16019+
"label": "Element is enabled",
16020+
"conditionsPhp": "($event->sender->enabled && $event->sender->getEnabledForSite())"
16021+
},
16022+
"firstSave": {
16023+
"label": "Element is being saved for the first time",
16024+
"conditionsPhp": "$event->sender->firstSave",
16025+
"excludes": [
16026+
"isNew",
16027+
"draft",
16028+
"provisional",
16029+
"revision",
16030+
"resaving"
16031+
]
16032+
},
16033+
"propagating": {
16034+
"label": "Element is being propagated",
16035+
"conditionsPhp": "$event->sender->propagating"
16036+
},
16037+
"resaving": {
16038+
"label": "Element is being bulk-resaved",
16039+
"conditionsPhp": "$event->sender->resaving",
16040+
"excludes": [
16041+
"firstSave"
16042+
]
16043+
}
16044+
}
16045+
},
1574516046
{
1574616047
"class": "craft\\commerce\\elements\\Variant",
1574716048
"name": "EVENT_DEFINE_ACTION_MENU_ITEMS",

0 commit comments

Comments
 (0)