The moveToFirstSibling()
method moves the target node to the first position among its sibling nodes.
Description
public AbstractNode::moveToFirstSibling(): ?NodeInterface
Parameters
None
Return Value
Returns a NodeInterface
representing the previous first sibling, or null
if the operation failed.
Exceptions
HIERARCHY_REQUEST_ERR
Thrown if the target node cannot be moved to the first position due to hierarchy constraints.