You are here

public static function WorkbenchTransitionEventSubscriber::getSubscribedEvents in Workbench Email 8

Same name and namespace in other branches
  1. 2.x src/EventSubscriber/WorkbenchTransitionEventSubscriber.php \Drupal\workbench_email\EventSubscriber\WorkbenchTransitionEventSubscriber::getSubscribedEvents()

File

src/EventSubscriber/WorkbenchTransitionEventSubscriber.php, line 154

Class

WorkbenchTransitionEventSubscriber
Subscribes to transition changes to send notification emails.

Namespace

Drupal\workbench_email\EventSubscriber

Code

public static function getSubscribedEvents() {
  return [
    'workbench_moderation.state_transition' => 'onWorkbenchModerationTransition',
    'content_moderation.state_changed' => 'onContentModerationTransition',
  ];
}