You are here

public function WorkspaceAssociation::postPublish in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::postPublish()
  2. 9 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::postPublish()

File

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

Class

WorkspaceAssociation
Provides a class for CRUD operations on workspace associations.

Namespace

Drupal\workspaces

Code

public function postPublish(WorkspaceInterface $workspace) {
  $this
    ->deleteAssociations($workspace
    ->id());
}