function WorkspaceTrackerInterface::getEntityTrackingWorkspaceIds
Gets a list of workspace IDs in which an entity is tracked.
Parameters
\Drupal\Core\Entity\RevisionableInterface $entity: An entity object.
bool $latest_revision: (optional) Whether to return only the workspaces in which the latest revision of the entity is tracked. Defaults to FALSE.
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 WorkspaceTrackerInterface::getEntityTrackingWorkspaceIds()
- WorkspaceTracker::getEntityTrackingWorkspaceIds in core/
modules/ workspaces/ src/ WorkspaceTracker.php - Gets a list of workspace IDs in which an entity is tracked.
File
-
core/
modules/ workspaces/ src/ WorkspaceTrackerInterface.php, line 117
Class
- WorkspaceTrackerInterface
- Defines an interface for the workspace tracker service.
Namespace
Drupal\workspacesCode
public function getEntityTrackingWorkspaceIds(RevisionableInterface $entity, bool $latest_revision = FALSE) : array;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.