function WorkspaceAssociation::deleteAssociations

Deletes all the workspace association records for the given workspace.

Parameters

string|null $workspace_id: (optional) A workspace entity ID. Defaults to NULL.

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.

int[]|string[]|null $revision_ids: (optional) The target entity revision IDs of the associations to delete. Defaults to NULL.

Overrides WorkspaceAssociationInterface::deleteAssociations

File

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

Class

WorkspaceAssociation
Provides a class for CRUD operations on workspace associations.

Namespace

Drupal\workspaces

Code

public function deleteAssociations($workspace_id = NULL, $entity_type_id = NULL, $entity_ids = NULL, $revision_ids = NULL) {
  $this->workspaceTracker
    ->deleteTrackedEntities($workspace_id, $entity_type_id, $entity_ids);
}

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