constant SchedulerNodeEvents::PRE_UNPUBLISH in Scheduler 2.x
The event triggered before a node is unpublished via cron.
This event allows modules to react before a node is unpublished. The event listener method receives a \Drupal\Core\Entity\EntityInterface instance.
See also
\Drupal\scheduler\Event\SchedulerEvent
File
- src/
Event/ SchedulerNodeEvents.php, line 86
Class
- SchedulerNodeEvents
- Lists the six events dispatched by Scheduler relating to Node entities.
Namespace
Drupal\scheduler\EventCode
const PRE_UNPUBLISH = 'scheduler.pre_unpublish';