function WorkspacePublishEvent::__construct
Constructs a new WorkspacePublishEvent.
Parameters
\Drupal\workspaces\WorkspaceInterface $workspace: The workspace.
array $published_revision_ids: The IDs of the entities that are being published.
File
- 
              core/
modules/ workspaces/ src/ Event/ WorkspacePublishEvent.php, line 37  
Class
- WorkspacePublishEvent
 - Defines the workspace publish event.
 
Namespace
Drupal\workspaces\EventCode
public function __construct(protected readonly WorkspaceInterface $workspace, array $published_revision_ids) {
  $this->publishedRevisionIds = $published_revision_ids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.