You are here

constant SchedulerMediaEvents::PRE_PUBLISH in Scheduler 2.x

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.

See also

\Drupal\scheduler\Event\SchedulerEvent

File

src/Event/SchedulerMediaEvents.php, line 66

Class

SchedulerMediaEvents
Lists the six events dispatched by Scheduler relating to Media entities.

Namespace

Drupal\scheduler\Event

Code

const PRE_PUBLISH = 'scheduler.media_pre_publish';