function WorkspacePublishEvent::__construct
Same name in other branches
- 11.x core/modules/workspaces/src/Event/WorkspacePublishEvent.php \Drupal\workspaces\Event\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(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.