diff --git a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php index 7aae6d5be7..59abaab4c8 100644 --- a/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php +++ b/Neos.ContentRepository.Core/Classes/Feature/WorkspacePublication/Event/WorkspaceWasPublished.php @@ -15,13 +15,14 @@ */ use Neos\ContentRepository\Core\EventStore\EventInterface; +use Neos\ContentRepository\Core\Feature\Common\EmbedsWorkspaceName; use Neos\ContentRepository\Core\SharedModel\Workspace\ContentStreamId; use Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName; /** * @api events are the persistence-API of the content repository */ -final readonly class WorkspaceWasPublished implements EventInterface +final readonly class WorkspaceWasPublished implements EventInterface, EmbedsWorkspaceName { public function __construct( /** @@ -58,6 +59,11 @@ public static function fromArray(array $values): self ); } + public function getWorkspaceName(): WorkspaceName + { + return $this->sourceWorkspaceName; + } + public function jsonSerialize(): array { return get_object_vars($this);