From 98a0fb213b0f8562c2056d649cab56bd82708f9d Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Thu, 10 Oct 2024 19:32:54 +0200 Subject: [PATCH] TASK: Add missing doc comments #5279 The review comments were not applied. --- Neos.ContentRepository.Core/Classes/ContentRepository.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Neos.ContentRepository.Core/Classes/ContentRepository.php b/Neos.ContentRepository.Core/Classes/ContentRepository.php index 96b3025f57a..d1262979d40 100644 --- a/Neos.ContentRepository.Core/Classes/ContentRepository.php +++ b/Neos.ContentRepository.Core/Classes/ContentRepository.php @@ -244,11 +244,18 @@ public function getContentGraph(WorkspaceName $workspaceName): ContentGraphInter return $this->projectionState(ContentGraphFinder::class)->getByWorkspaceName($workspaceName); } + /** + * Returns the workspace with the given name, or NULL if it does not exist in this content repository + */ public function findWorkspaceByName(WorkspaceName $workspaceName): ?Workspace { return $this->getWorkspaceFinder()->findOneByName($workspaceName); } + /** + * Returns all workspaces of this content repository. To limit the set, {@see Workspaces::find()} and {@see Workspaces::filter()} can be used + * as well as {@see Workspaces::getBaseWorkspaces()} and {@see Workspaces::getDependantWorkspaces()}. + */ public function findWorkspaces(): Workspaces { return $this->getWorkspaceFinder()->findAll();