function WorkspacePublishEvent::__construct

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

Constructs a new WorkspacePublishEvent.

Parameters

\Drupal\workspaces\WorkspaceInterface $workspace: The workspace.

array $publishedRevisionIds: The IDs of the entities that are being published.

File

core/modules/workspaces/src/Event/WorkspacePublishEvent.php, line 32

Class

WorkspacePublishEvent
Defines the workspace publish event.

Namespace

Drupal\workspaces\Event

Code

public function __construct(protected readonly WorkspaceInterface $workspace, protected readonly array $publishedRevisionIds) {
}

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