interface ContentGraphInterface implements ProjectionStateInterface (View source)

This is the MAIN ENTRY POINT for the Content Repository. This class exists only once per Content Repository.

The most important API method is {\Neos\ContentRepository\Core\Projection\ContentGraph\ContentGraphInterface::getSubgraph()}, where you can access the most important read model, the {\Neos\ContentRepository\Core\Projection\ContentGraph\ContentSubgraphInterface}.

Methods

getSubgraph(ContentStreamId $contentStreamId, DimensionSpacePoint $dimensionSpacePoint, VisibilityConstraints $visibilityConstraints)

No description

NodeAggregate
findRootNodeAggregateByType(ContentStreamId $contentStreamId, NodeTypeName $nodeTypeName)

No description

iterable
findNodeAggregatesByType(ContentStreamId $contentStreamId, NodeTypeName $nodeTypeName)

No description

NodeAggregate|null
findNodeAggregateById(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId)

No description

iterable
findUsedNodeTypeNames()

Returns all node types in use, from the graph projection

Node|null
findNodeByIdAndOriginDimensionSpacePoint(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint)

No description

NodeAggregate|null
findParentNodeAggregateByChildOriginDimensionSpacePoint(ContentStreamId $contentStreamId, NodeAggregateId $childNodeAggregateId, OriginDimensionSpacePoint $childOriginDimensionSpacePoint)

No description

iterable
findParentNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $childNodeAggregateId)

No description

iterable
findChildNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId)

No description

iterable
findChildNodeAggregatesByName(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId, NodeName $name)

A node aggregate may have multiple child node aggregates with the same name as long as they do not share dimension space coverage

iterable
findTetheredChildNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId)

No description

DimensionSpacePointSet
getDimensionSpacePointsOccupiedByChildNodeName(ContentStreamId $contentStreamId, NodeName $nodeName, NodeAggregateId $parentNodeAggregateId, OriginDimensionSpacePoint $parentNodeOriginDimensionSpacePoint, DimensionSpacePointSet $dimensionSpacePointsToCheck)

No description

int
countNodes()

No description

Details

ContentSubgraphInterface getSubgraph(ContentStreamId $contentStreamId, DimensionSpacePoint $dimensionSpacePoint, VisibilityConstraints $visibilityConstraints)

No description

Parameters

ContentStreamId $contentStreamId
DimensionSpacePoint $dimensionSpacePoint
VisibilityConstraints $visibilityConstraints

Return Value

ContentSubgraphInterface

NodeAggregate findRootNodeAggregateByType(ContentStreamId $contentStreamId, NodeTypeName $nodeTypeName)

No description

Parameters

ContentStreamId $contentStreamId
NodeTypeName $nodeTypeName

Return Value

NodeAggregate

iterable findNodeAggregatesByType(ContentStreamId $contentStreamId, NodeTypeName $nodeTypeName)

No description

Parameters

ContentStreamId $contentStreamId
NodeTypeName $nodeTypeName

Return Value

iterable

NodeAggregate|null findNodeAggregateById(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId)

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $nodeAggregateId

Return Value

NodeAggregate|null

Exceptions

NodeAggregatesTypeIsAmbiguous

iterable findUsedNodeTypeNames()

Returns all node types in use, from the graph projection

Return Value

iterable

Node|null findNodeByIdAndOriginDimensionSpacePoint(ContentStreamId $contentStreamId, NodeAggregateId $nodeAggregateId, OriginDimensionSpacePoint $originDimensionSpacePoint)

internal  
 

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $nodeAggregateId
OriginDimensionSpacePoint $originDimensionSpacePoint

Return Value

Node|null

NodeAggregate|null findParentNodeAggregateByChildOriginDimensionSpacePoint(ContentStreamId $contentStreamId, NodeAggregateId $childNodeAggregateId, OriginDimensionSpacePoint $childOriginDimensionSpacePoint)

internal  only for consumption inside the Command Handler
 

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $childNodeAggregateId
OriginDimensionSpacePoint $childOriginDimensionSpacePoint

Return Value

NodeAggregate|null

iterable findParentNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $childNodeAggregateId)

internal  only for consumption inside the Command Handler
 

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $childNodeAggregateId

Return Value

iterable

iterable findChildNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId)

internal  only for consumption inside the Command Handler
 

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $parentNodeAggregateId

Return Value

iterable

iterable findChildNodeAggregatesByName(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId, NodeName $name)

internal  only for consumption inside the Command Handler
 

A node aggregate may have multiple child node aggregates with the same name as long as they do not share dimension space coverage

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $parentNodeAggregateId
NodeName $name

Return Value

iterable

iterable findTetheredChildNodeAggregates(ContentStreamId $contentStreamId, NodeAggregateId $parentNodeAggregateId)

internal  only for consumption inside the Command Handler
 

No description

Parameters

ContentStreamId $contentStreamId
NodeAggregateId $parentNodeAggregateId

Return Value

iterable

DimensionSpacePointSet getDimensionSpacePointsOccupiedByChildNodeName(ContentStreamId $contentStreamId, NodeName $nodeName, NodeAggregateId $parentNodeAggregateId, OriginDimensionSpacePoint $parentNodeOriginDimensionSpacePoint, DimensionSpacePointSet $dimensionSpacePointsToCheck)

internal  only for consumption inside the Command Handler
 

No description

Parameters

ContentStreamId $contentStreamId
NodeName $nodeName
NodeAggregateId $parentNodeAggregateId
OriginDimensionSpacePoint $parentNodeOriginDimensionSpacePoint
DimensionSpacePointSet $dimensionSpacePointsToCheck

Return Value

DimensionSpacePointSet

int countNodes()

internal  only for consumption in testcases
 

No description

Return Value

int