Skip to content

Commit

Permalink
TASK: Add missing doc comments #5279
Browse files Browse the repository at this point in the history
The review comments were not applied.
  • Loading branch information
mhsdesign committed Oct 10, 2024
1 parent bc25ec5 commit 98a0fb2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Neos.ContentRepository.Core/Classes/ContentRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 98a0fb2

Please sign in to comment.