You are here

public function WorkspaceRepositoryInterface::getDescendantsAndSelf in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/WorkspaceRepositoryInterface.php \Drupal\workspaces\WorkspaceRepositoryInterface::getDescendantsAndSelf()
  2. 9 core/modules/workspaces/src/WorkspaceRepositoryInterface.php \Drupal\workspaces\WorkspaceRepositoryInterface::getDescendantsAndSelf()

Returns the descendant IDs of the passed-in workspace, including itself.

Parameters

string $workspace_id: A workspace ID.

Return value

string[] An array of descendant workspace IDs, including the passed-in one.

File

core/modules/workspaces/src/WorkspaceRepositoryInterface.php, line 31

Class

WorkspaceRepositoryInterface
Provides an interface for workspace tree lookup operations.

Namespace

Drupal\workspaces

Code

public function getDescendantsAndSelf($workspace_id);