You are here

final class SchedulerCommerceProductEvents in Scheduler 2.x

Lists the six events dispatched by Scheduler for commerce_product entities.

Hierarchy

Expanded class hierarchy of SchedulerCommerceProductEvents

1 file declares its use of SchedulerCommerceProductEvents
EventSubscriber.php in tests/modules/scheduler_api_test/src/EventSubscriber.php

File

src/Event/SchedulerCommerceProductEvents.php, line 8

Namespace

Drupal\scheduler\Event
View source
final class SchedulerCommerceProductEvents {

  /**
   * The event triggered after a commerce_product item is published immediately.
   *
   * This event allows modules to react after an entity is published
   * immediately when being saved after editing. The event listener method
   * receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_publish_immediately';

  /**
   * The event triggered after a commerce_product item is published by cron.
   *
   * This event allows modules to react after an entity is published by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const PUBLISH = 'scheduler.commerce_product_publish';

  /**
   * The event triggered before a commerce_product is published immediately.
   *
   * This event allows modules to react before an entity is published
   * immediately when being saved after editing. The event listener method
   * receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const PRE_PUBLISH_IMMEDIATELY = 'scheduler.commerce_product_pre_publish_immediately';

  /**
   * The event triggered before a commerce_product item is published by cron.
   *
   * This event allows modules to react before an entity is published by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const PRE_PUBLISH = 'scheduler.commerce_product_pre_publish';

  /**
   * The event triggered before a commerce_product item is unpublished by cron.
   *
   * This event allows modules to react before an entity is unpublished by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const PRE_UNPUBLISH = 'scheduler.commerce_product_pre_unpublish';

  /**
   * The event triggered after a commerce_product item is unpublished by cron.
   *
   * This event allows modules to react after an entity is unpublished by Cron.
   * The event listener receives a \Drupal\Core\Entity\EntityInterface instance.
   *
   * @Event
   *
   * @see \Drupal\scheduler\Event\SchedulerEvent
   *
   * @var string
   */
  const UNPUBLISH = 'scheduler.commerce_product_unpublish';

}

Members

Namesort descending Modifiers Type Description Overrides
SchedulerCommerceProductEvents::PRE_PUBLISH constant The event triggered before a commerce_product item is published by cron.
SchedulerCommerceProductEvents::PRE_PUBLISH_IMMEDIATELY constant The event triggered before a commerce_product is published immediately.
SchedulerCommerceProductEvents::PRE_UNPUBLISH constant The event triggered before a commerce_product item is unpublished by cron.
SchedulerCommerceProductEvents::PUBLISH constant The event triggered after a commerce_product item is published by cron.
SchedulerCommerceProductEvents::PUBLISH_IMMEDIATELY constant The event triggered after a commerce_product item is published immediately.
SchedulerCommerceProductEvents::UNPUBLISH constant The event triggered after a commerce_product item is unpublished by cron.