function WorkspaceAssociation::getSubscribedEvents

Same name in other branches
  1. 10 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::getSubscribedEvents()

File

core/modules/workspaces/src/WorkspaceAssociation.php, line 381

Class

WorkspaceAssociation
Provides a class for CRUD operations on workspace associations.

Namespace

Drupal\workspaces

Code

public static function getSubscribedEvents() : array {
    // Workspace association records cleanup should happen as late as possible.
    $events[WorkspacePostPublishEvent::class][] = [
        'onPostPublish',
        -500,
    ];
    return $events;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.