public function WorkspaceAssociation::postPublish in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::postPublish()
- 10 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\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 208
Class
- WorkspaceAssociation
- Provides a class for CRUD operations on workspace associations.
Namespace
Drupal\workspacesCode
public function postPublish(WorkspaceInterface $workspace) {
$this
->deleteAssociations($workspace
->id());
}