You are here

final class CommerceEvents in Commerce Core 8.2

Defines events for the base Commerce module.

Note that submodules have their own defined events.

Hierarchy

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\Event
View 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

Namesort descending Modifiers Type Description Overrides
CommerceEvents::FILTER_CONDITIONS constant Name of the event fired when filtering available conditions.
CommerceEvents::POST_MAIL_SEND constant Name of the event fired after sending an email via the mail handler.
CommerceEvents::REFERENCEABLE_PLUGIN_TYPES constant Name of the event fired when altering the referenceable plugin types.