final class SetNodeReferences implements CommandInterface (View source)

Create a named reference from source to one or multiple destination nodes.

The previously set references will be replaced by this command and not merged.

Internally, this object is converted into a {\Neos\ContentRepository\Core\Feature\NodeReferencing\Command\SetSerializedNodeReferences} command, which is then processed and stored.

Methods

create(WorkspaceName $workspaceName, NodeAggregateId $sourceNodeAggregateId, OriginDimensionSpacePoint $sourceOriginDimensionSpacePoint, NodeReferencesToWrite $references)

No description

fromArray(array $array)

No description

Details

static SetNodeReferences create(WorkspaceName $workspaceName, NodeAggregateId $sourceNodeAggregateId, OriginDimensionSpacePoint $sourceOriginDimensionSpacePoint, NodeReferencesToWrite $references)

No description

Parameters

WorkspaceName $workspaceName

The workspace in which the create operation is to be performed

NodeAggregateId $sourceNodeAggregateId

The identifier of the node aggregate to set references

OriginDimensionSpacePoint $sourceOriginDimensionSpacePoint

The dimension space for which the references should be set

NodeReferencesToWrite $references

Unserialized reference(s) to set

Return Value

SetNodeReferences

static CommandInterface fromArray(array $array)

No description

Parameters

array $array

Return Value

CommandInterface