function WorkspaceAssociation::getTrackedEntitiesForListing
Retrieves a paged list of entities tracked by a given workspace.
Parameters
string $workspace_id: The ID of the workspace.
int|null $pager_id: (optional) A pager ID. Defaults to NULL.
int|false $limit: (optional) An integer specifying the number of elements per page. If passed a false value (FALSE, 0, NULL), the pager is disabled. Defaults to 50.
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.
Overrides WorkspaceAssociationInterface::getTrackedEntitiesForListing
File
-
core/
modules/ workspaces/ src/ WorkspaceAssociation.php, line 48
Class
- WorkspaceAssociation
- Provides a class for CRUD operations on workspace associations.
Namespace
Drupal\workspacesCode
public function getTrackedEntitiesForListing($workspace_id, ?int $pager_id = NULL, int|false $limit = 50) : array {
return $this->workspaceTracker
->getTrackedEntitiesForListing($workspace_id, $pager_id, $limit);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.