public function WorkspaceAssociation::postPublish in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceAssociation.php \Drupal\workspaces\WorkspaceAssociation::postPublish()
- 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\workspacesCode
public function postPublish(WorkspaceInterface $workspace) {
$this
->deleteAssociations($workspace
->id());
}