final class SchedulerMediaEvents in Scheduler 2.x
Lists the six events dispatched by Scheduler relating to Media entities.
Hierarchy
- class \Drupal\scheduler\Event\SchedulerMediaEvents
Expanded class hierarchy of SchedulerMediaEvents
1 file declares its use of SchedulerMediaEvents
- EventSubscriber.php in tests/
modules/ scheduler_api_test/ src/ EventSubscriber.php
File
- src/
Event/ SchedulerMediaEvents.php, line 8
Namespace
Drupal\scheduler\EventView source
final class SchedulerMediaEvents {
/**
* The event triggered after a media 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.media_publish_immediately';
/**
* The event triggered after a media 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.media_publish';
/**
* The event triggered before a media item 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.media_pre_publish_immediately';
/**
* The event triggered before a media 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.media_pre_publish';
/**
* The event triggered before a media 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.media_pre_unpublish';
/**
* The event triggered after a media 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.media_unpublish';
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SchedulerMediaEvents:: |
constant | The event triggered before a media item is published by cron. | ||
SchedulerMediaEvents:: |
constant | The event triggered before a media item is published immediately. | ||
SchedulerMediaEvents:: |
constant | The event triggered before a media item is unpublished by cron. | ||
SchedulerMediaEvents:: |
constant | The event triggered after a media item is published by cron. | ||
SchedulerMediaEvents:: |
constant | The event triggered after a media item is published immediately. | ||
SchedulerMediaEvents:: |
constant | The event triggered after a media item is unpublished by cron. |