function WorkspaceSubscriber::getSubscribedEvents
File
- 
              core/
modules/ content_moderation/ src/ EventSubscriber/ WorkspaceSubscriber.php, line 101  
Class
- WorkspaceSubscriber
 - Checks whether a workspace is publishable, and prevents publishing if needed.
 
Namespace
Drupal\content_moderation\EventSubscriberCode
public static function getSubscribedEvents() : array {
  $events[WorkspacePrePublishEvent::class][] = [
    'onWorkspacePrePublish',
  ];
  return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.