function WorkspaceAssociation::postPublish

Triggers clean-up operations after publishing a workspace.

Parameters

\Drupal\workspaces\WorkspaceInterface $workspace: A workspace entity.

Overrides WorkspaceAssociationInterface::postPublish

File

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

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.