NodeServiceInterface
interface NodeServiceInterface (View source)
Provides generic methods to manage and work with Nodes
Methods
Removes all properties not configured in the current Node Type.
Removes all auto created child nodes that existed in the previous nodeType.
Checks if the given node path exists in any possible context already.
Checks if the given node path can be used for the given node.
Normalizes the given node path to a reference path and returns an absolute path.
Generates a possible node name, optionally based on a suggested "ideal" name.
Details
void
setDefaultValues(NodeInterface $node)
Sets default node property values on the given node.
void
createChildNodes(NodeInterface $node)
Creates missing child nodes for the given node.
void
cleanUpProperties(NodeInterface $node)
Removes all properties not configured in the current Node Type.
void
cleanUpAutoCreatedChildNodes(NodeInterface $node, NodeType $oldNodeType)
Removes all auto created child nodes that existed in the previous nodeType.
bool
isNodeOfType(NodeInterface $node, NodeType $nodeType)
No description
bool
nodePathExistsInAnyContext(string $nodePath)
Checks if the given node path exists in any possible context already.
bool
nodePathAvailableForNode(string $nodePath, NodeInterface $node)
Checks if the given node path can be used for the given node.
string
normalizePath(string $path, string $referencePath = null)
Normalizes the given node path to a reference path and returns an absolute path.
string
generateUniqueNodeName(string $parentPath, string $idealNodeName = null)
Generates a possible node name, optionally based on a suggested "ideal" name.