function WorkspaceSwitchEvent::__construct

Same name and namespace in other branches
  1. 11.x core/modules/workspaces/src/Event/WorkspaceSwitchEvent.php \Drupal\workspaces\Event\WorkspaceSwitchEvent::__construct()

File

core/modules/workspaces/src/Event/WorkspaceSwitchEvent.php, line 13

Class

WorkspaceSwitchEvent
Defines the workspace switch event.

Namespace

Drupal\workspaces\Event

Code

public function __construct(protected readonly ?WorkspaceInterface $workspace = NULL, protected readonly ?WorkspaceInterface $previousWorkspace = NULL) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.