Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eca_commerce
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
eca_commerce
Commits
65b51afb
Commit
65b51afb
authored
11 months ago
by
nicxvan
Browse files
Options
Downloads
Patches
Plain Diff
Add descriptions
parent
14114af3
No related branches found
No related tags found
1 merge request
!10
Add descriptions
Pipeline
#181142
passed
11 months ago
Stage: build
Stage: validate
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Plugin/ECA/Event/EcaEvent.php
+46
-36
46 additions, 36 deletions
src/Plugin/ECA/Event/EcaEvent.php
with
46 additions
and
36 deletions
src/Plugin/ECA/Event/EcaEvent.php
+
46
−
36
View file @
65b51afb
...
...
@@ -633,7 +633,7 @@ class EcaEvent extends EventBase {
*/
#
[
Token
(
name
:
'cart'
,
description
:
''
,
description
:
'
The cart entity.
'
,
classes
:
[
CartEmptyEvent
::
class
,
CartEntityAddEvent
::
class
,
...
...
@@ -644,28 +644,28 @@ class EcaEvent extends EventBase {
)]
#
[
Token
(
name
:
'commerce_coupon'
,
description
:
''
,
description
:
'
The coupon entity.
'
,
classes
:
[
CouponEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_customer'
,
description
:
''
,
description
:
'
The current customer, this is a Drupal User.
'
,
classes
:
[
OrderAssignEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_definition'
,
description
:
''
,
description
:
'
This is the number format definition.
'
,
classes
:
[
NumberFormatDefinitionEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_order'
,
description
:
''
,
description
:
'
The order entity.
'
,
classes
:
[
CheckoutCompletionRegisterEvent
::
class
,
OrderAssignEvent
::
class
,
...
...
@@ -678,7 +678,7 @@ class EcaEvent extends EventBase {
)]
#
[
Token
(
name
:
'commerce_order_item'
,
description
:
''
,
description
:
'
The order item entity.
'
,
classes
:
[
CartEntityAddEvent
::
class
,
CartOrderItemAddEvent
::
class
,
...
...
@@ -691,49 +691,49 @@ class EcaEvent extends EventBase {
)]
#
[
Token
(
name
:
'commerce_order_items'
,
description
:
''
,
description
:
'
An array of order item entities.
'
,
classes
:
[
CartEmptyEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_order_item_comparison_fields'
,
description
:
''
,
description
:
'
The fields to compare.
'
,
classes
:
[
OrderItemComparisonFieldsEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_order_item_original'
,
description
:
''
,
description
:
'
The original item data before the update.
'
,
classes
:
[
CartOrderItemUpdateEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_order_label'
,
description
:
''
,
description
:
'
The order label.
'
,
classes
:
[
OrderLabelEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_order_payment_gateways'
,
description
:
''
,
description
:
'
The payment gateway configuration.
'
,
classes
:
[
FilterPaymentGatewaysEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_payment'
,
description
:
''
,
description
:
'
The payment entity.
'
,
classes
:
[
PaymentEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_product'
,
description
:
''
,
description
:
'
The product entity. This is not the variation.
'
,
classes
:
[
FilterVariationsEvent
::
class
,
ProductDefaultVariationEvent
::
class
,
...
...
@@ -742,14 +742,14 @@ class EcaEvent extends EventBase {
)]
#
[
Token
(
name
:
'commerce_product_attribute_value'
,
description
:
''
,
description
:
'
The product attribute value entity.
'
,
classes
:
[
ProductAttributeValueEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_product_variation'
,
description
:
''
,
description
:
'
The product variation entity. This is not the product entity.
'
,
classes
:
[
FilterVariationsEvent
::
class
,
ProductVariationAjaxChangeEvent
::
class
,
...
...
@@ -758,78 +758,84 @@ class EcaEvent extends EventBase {
)]
#
[
Token
(
name
:
'commerce_product_variation_default'
,
description
:
''
,
description
:
'
This is the default product variation.
'
,
classes
:
[
ProductDefaultVariationEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_product_variation_response'
,
description
:
''
,
description
:
'
The response when changing product variations via ajax.
'
,
classes
:
[
ProductVariationAjaxChangeEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_product_variation_view_mode'
,
description
:
''
,
description
:
'
The view mode for the product variation.
'
,
classes
:
[
ProductVariationAjaxChangeEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_promotion'
,
description
:
''
,
description
:
'
The promotion entity.
'
,
classes
:
[
PromotionEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_promotions'
,
description
:
''
,
description
:
'
An array of promotion entities.
'
,
classes
:
[
FilterPromotionsEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_store'
,
description
:
''
,
description
:
'
The store entity.
'
,
classes
:
[
StoreEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_
store
_plugin'
,
description
:
''
,
name
:
'commerce_
tax
_plugin'
,
description
:
'
The local tax type plugin.
'
,
classes
:
[
BuildZonesEvent
::
class
,
]
)]
#
[
Token
(
name
:
'commerce_
store
_zones'
,
description
:
''
,
name
:
'commerce_
tax
_zones'
,
description
:
'
An array of tax zones.
'
,
classes
:
[
BuildZonesEvent
::
class
,
]
)]
#
[
Token
(
name
:
'entity'
,
description
:
''
,
description
:
'
This is a purchasable entity.
'
,
classes
:
[
CartEntityAddEvent
::
class
,
]
)]
#
[
Token
(
name
:
'profile'
,
description
:
''
,
name
:
'
customer_
profile'
,
description
:
'
A customer profile.
'
,
classes
:
[
OrderProfilesEvent
::
class
,
CustomerProfileEvent
::
class
,
]
)]
#
[
Token
(
name
:
'profiles'
,
description
:
'An array of customer profiles.'
,
classes
:
[
OrderProfilesEvent
::
class
,
]
)]
#
[
Token
(
name
:
'quantity'
,
description
:
''
,
description
:
'
A float of the quantity.
'
,
classes
:
[
CartEntityAddEvent
::
class
,
CartOrderItemAddEvent
::
class
,
...
...
@@ -989,13 +995,13 @@ class EcaEvent extends EventBase {
}
break
;
case
'commerce_
store
_plugin'
:
case
'commerce_
tax
_plugin'
:
if
(
$event
instanceof
BuildZonesEvent
)
{
return
$event
->
getPlugin
();
}
break
;
case
'commerce_
store
_zones'
:
case
'commerce_
tax
_zones'
:
if
(
$event
instanceof
BuildZonesEvent
)
{
return
$event
->
getZones
();
}
...
...
@@ -1007,10 +1013,14 @@ class EcaEvent extends EventBase {
}
break
;
case
'profile'
:
if
(
$event
instanceof
OrderProfilesEvent
||
$event
instanceof
CustomerProfileEvent
)
{
case
'customer_profile'
:
if
(
$event
instanceof
CustomerProfileEvent
)
{
return
$event
->
getCustomerProfile
();
}
break
;
case
'profiles'
:
if
(
$event
instanceof
OrderProfilesEvent
)
{
return
$event
->
getProfiles
();
}
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment