final class CommerceEvents in Commerce Core 8.2
Defines events for the base Commerce module.
Note that submodules have their own defined events.
Hierarchy
- class \Drupal\commerce\Event\CommerceEvents
Expanded class hierarchy of CommerceEvents
5 files declare their use of CommerceEvents
- ConditionManager.php in src/
ConditionManager.php - MailHandler.php in src/
MailHandler.php - OrderMailEventSubscriber.php in modules/
log/ src/ EventSubscriber/ OrderMailEventSubscriber.php - PluginItemDeriver.php in src/
Plugin/ Field/ FieldType/ PluginItemDeriver.php - ReferenceablePluginTypesSubscriber.php in tests/
modules/ commerce_test/ src/ EventSubscriber/ ReferenceablePluginTypesSubscriber.php
File
- src/
Event/ CommerceEvents.php, line 10
Namespace
Drupal\commerce\EventView source
final class CommerceEvents {
/**
* Name of the event fired when filtering available conditions.
*
* @Event
*
* @see \Drupal\commerce\Event\FilterConditionsEvent
*/
const FILTER_CONDITIONS = 'commerce.filter_conditions';
/**
* Name of the event fired when altering the referenceable plugin types.
*
* @Event
*
* @see \Drupal\commerce\Event\ReferenceablePluginTypesEvent.php
*/
const REFERENCEABLE_PLUGIN_TYPES = 'commerce.referenceable_plugin_types';
/**
* Name of the event fired after sending an email via the mail handler.
*
* @Event
*
* @see \Drupal\commerce\Event\PostMailSendEvent.php
*/
const POST_MAIL_SEND = 'commerce.post_mail_send';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommerceEvents:: |
constant | Name of the event fired when filtering available conditions. | ||
CommerceEvents:: |
constant | Name of the event fired after sending an email via the mail handler. | ||
CommerceEvents:: |
constant | Name of the event fired when altering the referenceable plugin types. |