Neos.ContentRepository/Classes/Domain/Service/NodeService.php
protected function generatePossibleNodeName($idealNodeName = null)
    {
        if ($idealNodeName !== null) {
            $possibleNodeName = Utility::renderValidNodeName($idealNodeName);
        } else {
            $possibleNodeName = NodePaths::generateRandomNodeName();
        }

        return $possibleNodeName;
    }
protected function generatePossibleNodeName($idealNodeName = null)
    {
        if ($idealNodeName !== null) {
            $possibleNodeName = Utility::renderValidNodeName($idealNodeName);
        } else {
            $possibleNodeName = NodePaths::generateRandomNodeName();
        }

        return $possibleNodeName;
    }
protected function generatePossibleNodeName ( $ idealNodeName = null ) { if ( $ idealNodeName !== null ) { $ possibleNodeName = Utility :: renderValidNodeName ( $ idealNodeName ) ; } else { $ possibleNodeName = NodePaths :: generateRandomNodeName ( ) ; } return $ possibleNodeName ; }
Generate possible node name. When an idealNodeName is given then this is put into a valid format for a node name,
otherwise a random node name in the form "node-alphanumeric" is generated.

@param string $idealNodeName
@return string
Generate possible node name . When an idealNodeName is given then this is put into a valid format for a node name otherwise a random node name in the form node - alphanumeric is generated .