If the position is "before" or "after", an index will be chosen which makes
the given node the previous or next node of the given reference node.
If the position "last" is specified, an index higher than any existing index
will be chosen.
If no free index is available between two nodes (for "before" and "after"),
the whole index of the current node level will be renumbered.
public setNewIndex ( |
||
$node | The node to set the new index for | |
$position | integer | The position the new index should reflect, must be one of the POSITION_* constants |
$referenceNode | Neos\ContentRepository\Domain\Model\NodeInterface | The reference node. Mandatory for POSITION_BEFORE and POSITION_AFTER |
return | void |