function 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\Event

Code

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.