function WorkspaceTrackerInterface::deleteTrackedEntities

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.

Throws

\InvalidArgumentException If neither $workspace_id nor $entity_type_id arguments were provided.

1 method overrides WorkspaceTrackerInterface::deleteTrackedEntities()
WorkspaceTracker::deleteTrackedEntities in core/modules/workspaces/src/WorkspaceTracker.php
Deletes all the workspace association records for the given workspace.

File

core/modules/workspaces/src/WorkspaceTrackerInterface.php, line 160

Class

WorkspaceTrackerInterface
Defines an interface for the workspace tracker service.

Namespace

Drupal\workspaces

Code

public function deleteTrackedEntities(?string $workspace_id = NULL, ?string $entity_type_id = NULL, ?array $entity_ids = NULL, ?array $revision_ids = NULL) : void;

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