function WorkspaceAssociation::postPublish

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

Overrides WorkspaceAssociationInterface::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());
}

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