function WorkspaceManagerInterface::executeInWorkspace
Same name in other branches
- 8.9.x core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeInWorkspace()
- 10 core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeInWorkspace()
- 11.x core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeInWorkspace()
Executes the given callback function in the context of a workspace.
Parameters
string $workspace_id: The ID of a workspace.
callable $function: The callback to be executed.
Return value
mixed The callable's return value.
1 method overrides WorkspaceManagerInterface::executeInWorkspace()
- WorkspaceManager::executeInWorkspace in core/
modules/ workspaces/ src/ WorkspaceManager.php - Executes the given callback function in the context of a workspace.
File
-
core/
modules/ workspaces/ src/ WorkspaceManagerInterface.php, line 78
Class
- WorkspaceManagerInterface
- Provides an interface for managing Workspaces.
Namespace
Drupal\workspacesCode
public function executeInWorkspace($workspace_id, callable $function);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.