You are here

public function WorkspaceAssociationInterface::getEntityTrackingWorkspaceIds in Drupal 9

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

Gets a list of workspace IDs in which an entity is tracked.

Parameters

\Drupal\Core\Entity\RevisionableInterface $entity: An entity object.

Return value

string[] An array of workspace IDs where the given entity is tracked, or an empty array if it is not tracked anywhere.

1 method overrides WorkspaceAssociationInterface::getEntityTrackingWorkspaceIds()
WorkspaceAssociation::getEntityTrackingWorkspaceIds in core/modules/workspaces/src/WorkspaceAssociation.php
Gets a list of workspace IDs in which an entity is tracked.

File

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

Class

WorkspaceAssociationInterface
Defines an interface for the workspace_association service.

Namespace

Drupal\workspaces

Code

public function getEntityTrackingWorkspaceIds(RevisionableInterface $entity);