interface ContentGraphReadModelInterface implements ProjectionStateInterface (View source)

This low level interface gives access to the content graph and workspaces

Generally this is not accessible for users of the CR, except for registering a catchup-hook on the content graph

Methods

getContentGraph(WorkspaceName $workspaceName)

No description

Workspace|null
findWorkspaceByName(WorkspaceName $workspaceName)

No description

findWorkspaces()

No description

findContentStreamById(ContentStreamId $contentStreamId)

No description

int
countNodes()

Provides the total number of projected nodes regardless of workspace or content stream.

Details

ContentGraphInterface getContentGraph(WorkspaceName $workspaceName)

No description

Parameters

WorkspaceName $workspaceName

Return Value

ContentGraphInterface

Exceptions

WorkspaceDoesNotExist

Workspace|null findWorkspaceByName(WorkspaceName $workspaceName)

No description

Parameters

WorkspaceName $workspaceName

Return Value

Workspace|null

Workspaces findWorkspaces()

No description

Return Value

Workspaces

ContentStream|null findContentStreamById(ContentStreamId $contentStreamId)

internal  only used for constraint checks and in testcases, the public API must only use workspaces {@see \Neos\ContentRepository\Core\Projection\ContentGraph\findWorkspaceByName}.
 

No description

Parameters

ContentStreamId $contentStreamId

Return Value

ContentStream|null

int countNodes()

internal  only for consumption in testcases
 

Provides the total number of projected nodes regardless of workspace or content stream.

Return Value

int