function WorkspaceSwitchEvent::isTemporary
Same name and namespace in other branches
- main core/modules/workspaces/src/Event/WorkspaceSwitchEvent.php \Drupal\workspaces\Event\WorkspaceSwitchEvent::isTemporary()
Whether this switch is temporary (e.g. executeInWorkspace).
Temporary switches are automatically reverted after the callable finishes, as opposed to persistent switches via setActiveWorkspace/switchToLive.
Return value
bool TRUE if the switch is temporary, FALSE otherwise.
File
-
core/
modules/ workspaces/ src/ Event/ WorkspaceSwitchEvent.php, line 48
Class
- WorkspaceSwitchEvent
- Defines the workspace switch event.
Namespace
Drupal\workspaces\EventCode
public function isTemporary() : bool {
return $this->isTemporary;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.