NodeAddress
final class NodeAddress implements JsonSerializable (View source)
This describes a node's read model identity namely:
- {\Neos\ContentRepository\Core\SharedModel\ContentRepository\ContentRepositoryId}
- {\Neos\ContentRepository\Core\SharedModel\Workspace\WorkspaceName}
- {\Neos\ContentRepository\Core\DimensionSpace\DimensionSpacePoint} (not to be confused with the {\Neos\ContentRepository\Core\Projection\ContentGraph\Node::$originDimensionSpacePoint}) - {\Neos\ContentRepository\Core\SharedModel\Node\NodeAggregateId}
In combination the parts can be used to distinctly identify a single node.
By using the content graph for the content repository one can build a subgraph with the right perspective to find this node:
$subgraph = $contentRepository->getContentGraph($nodeAddress->workspaceName)->getSubgraph(
$nodeAddress->dimensionSpacePoint,
VisibilityConstraints::withoutRestrictions()
);
$node = $subgraph->findNodeById($nodeAddress->aggregateId); Methods
static NodeAddress
create(ContentRepositoryId $contentRepositoryId, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId $aggregateId)
No description
static NodeAddress
static NodeAddress
fromArray(array $array)
No description
static NodeAddress
fromJsonString(string $jsonString)
No description
bool
string
toJson()
No description
mixed
jsonSerialize()
No description
Details
static NodeAddress
create(ContentRepositoryId $contentRepositoryId, WorkspaceName $workspaceName, DimensionSpacePoint $dimensionSpacePoint, NodeAggregateId $aggregateId)
No description
static NodeAddress
fromNode(Node $node)
No description
static NodeAddress
fromArray(array $array)
No description
static NodeAddress
fromJsonString(string $jsonString)
No description
NodeAddress
withAggregateId(NodeAggregateId $aggregateId)
No description
bool
equals(NodeAddress $other)
No description
string
toJson()
No description
mixed
jsonSerialize()
No description