You are here

public static function WorkbenchModerationSubscriber::getSubscribedEvents in Workspace 8

File

src/EventSubscriber/WorkbenchModerationSubscriber.php, line 147

Class

WorkbenchModerationSubscriber
Subscriber for workbench transitions.

Namespace

Drupal\workspace\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events = [];
  if (class_exists(WorkbenchModerationEvents::class)) {
    $events[WorkbenchModerationEvents::STATE_TRANSITION][] = [
      'onTransition',
    ];
  }
  return $events;
}