public function WorkspaceAssociationInterface::deleteAssociations in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::deleteAssociations()
Deletes all the workspace association records for the given workspace.
Parameters
string $workspace_id: A workspace entity ID.
string|null $entity_type_id: (optional) The target entity type of the associations to delete. Defaults to NULL.
int[]|string[]|null $entity_ids: (optional) The target entity IDs of the associations to delete. Defaults to NULL.
1 method overrides WorkspaceAssociationInterface::deleteAssociations()
- WorkspaceAssociation::deleteAssociations in core/
modules/ workspaces/ src/ WorkspaceAssociation.php - Deletes all the workspace association records for the given workspace.
File
- core/
modules/ workspaces/ src/ WorkspaceAssociationInterface.php, line 109
Class
- WorkspaceAssociationInterface
- Defines an interface for the workspace_association service.
Namespace
Drupal\workspacesCode
public function deleteAssociations($workspace_id, $entity_type_id = NULL, $entity_ids = NULL);