function WorkspacePublishEvent::__construct

Same name and namespace in other branches
  1. 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 $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\Event

Code

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.