You are here

public function WorkspaceAssociationInterface::getTrackedEntities in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/WorkspaceAssociationInterface.php \Drupal\workspaces\WorkspaceAssociationInterface::getTrackedEntities()

Retrieves the entities tracked by a given workspace.

Parameters

string $workspace_id: The ID of the workspace.

string|null $entity_type_id: (optional) An entity type ID to filter the results by. Defaults to NULL.

int[]|string[]|null $entity_ids: (optional) An array of entity IDs to filter the results by. Defaults to NULL.

Return value

array Returns a multidimensional array where the first level keys are entity type IDs and the values are an array of entity IDs keyed by revision IDs.

1 method overrides WorkspaceAssociationInterface::getTrackedEntities()
WorkspaceAssociation::getTrackedEntities in core/modules/workspaces/src/WorkspaceAssociation.php
Retrieves the entities tracked by a given workspace.

File

core/modules/workspaces/src/WorkspaceAssociationInterface.php, line 54

Class

WorkspaceAssociationInterface
Defines an interface for the workspace_association service.

Namespace

Drupal\workspaces

Code

public function getTrackedEntities($workspace_id, $entity_type_id = NULL, $entity_ids = NULL);