You are here

public static function SchedulerPublishSubScriber::getSubscribedEvents in Content Planner 8

File

modules/content_calendar/src/EventSubscriber/SchedulerPublishSubScriber.php, line 17

Class

SchedulerPublishSubScriber

Namespace

Drupal\content_calendar\EventSubscriber

Code

public static function getSubscribedEvents() {

  // The values in the arrays give the function names below.
  $events[SchedulerEvents::PUBLISH][] = [
    'onNodePublish',
  ];
  return $events;
}