function WorkspaceRepository::getDescendantsAndSelf
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::getDescendantsAndSelf()
- 8.9.x core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::getDescendantsAndSelf()
- 11.x core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::getDescendantsAndSelf()
File
-
core/
modules/ workspaces/ src/ WorkspaceRepository.php, line 140
Class
- WorkspaceRepository
- Provides the default workspace tree lookup operations.
Namespace
Drupal\workspacesCode
public function getDescendantsAndSelf($workspace_id) {
return array_merge([
$workspace_id,
], $this->loadTree()[$workspace_id]['descendants']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.