public function WorkspaceRepositoryInterface::loadTree in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceRepositoryInterface.php \Drupal\workspaces\WorkspaceRepositoryInterface::loadTree()
- 9 core/modules/workspaces/src/WorkspaceRepositoryInterface.php \Drupal\workspaces\WorkspaceRepositoryInterface::loadTree()
Returns an array of workspaces tree item properties, sorted in tree order.
Return value
array An array of workspace tree item properties, keyed by the workspace IDs. The tree item properties are:
- depth: The depth of the workspace in the tree;
- ancestors: The ancestor IDs of the workspace;
- descendants: The descendant IDs of the workspace.
File
- core/
modules/ workspaces/ src/ WorkspaceRepositoryInterface.php, line 20
Class
- WorkspaceRepositoryInterface
- Provides an interface for workspace tree lookup operations.
Namespace
Drupal\workspacesCode
public function loadTree();