constant SchedulerCommerceProductEvents::PRE_UNPUBLISH in Scheduler 2.x
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.
See also
\Drupal\scheduler\Event\SchedulerEvent
File
- src/
Event/ SchedulerCommerceProductEvents.php, line 80
Class
- SchedulerCommerceProductEvents
- Lists the six events dispatched by Scheduler for commerce_product entities.
Namespace
Drupal\scheduler\EventCode
const PRE_UNPUBLISH = 'scheduler.commerce_product_pre_unpublish';