public function WorkspaceAssociationStorageInterface::getEntityTrackingWorkspaceIds in Workspace 8.2
Gets a list of workspace IDs in which an entity is tracked.
Parameters
\Drupal\Core\Entity\EntityInterface $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 WorkspaceAssociationStorageInterface::getEntityTrackingWorkspaceIds()
- WorkspaceAssociationStorage::getEntityTrackingWorkspaceIds in src/
WorkspaceAssociationStorage.php - Gets a list of workspace IDs in which an entity is tracked.
File
- src/
WorkspaceAssociationStorageInterface.php, line 46
Class
- WorkspaceAssociationStorageInterface
- Defines an interface for workspace association entity storage classes.
Namespace
Drupal\workspaceCode
public function getEntityTrackingWorkspaceIds(EntityInterface $entity);