function WorkspaceManagerInterface::executeOutsideWorkspace
Same name in other branches
- 8.9.x core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeOutsideWorkspace()
- 10 core/modules/workspaces/src/WorkspaceManagerInterface.php \Drupal\workspaces\WorkspaceManagerInterface::executeOutsideWorkspace()
- 11.x 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.
1 method overrides WorkspaceManagerInterface::executeOutsideWorkspace()
- WorkspaceManager::executeOutsideWorkspace in core/
modules/ workspaces/ src/ WorkspaceManager.php - Executes the given callback function without any workspace context.
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);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.