public function WorkspaceManagerInterface::executeOutsideWorkspace in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeOutsideWorkspace()
- 9 core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeOutsideWorkspace()
Executes the given callback function without any workspace context.
Parameters
callable $function: The callback to be executed.
Return value
mixed The callable's return value.
File
- core/
modules/ workspaces/ src/ WorkspaceManagerInterface.php, line 89
Class
- WorkspaceManagerInterface
- Provides an interface for managing Workspaces.
Namespace
Drupal\workspacesCode
public function executeOutsideWorkspace(callable $function);