Neos.ContentRepository/Classes/Command/NodeCommandControllerPlugin.php
protected function createMissingChildNodes($workspaceName, $dryRun, NodeType $nodeType = null)
    {
        if ($nodeType !== null) {
            $this->dispatch(self::EVENT_NOTICE, sprintf('Checking nodes of type "<i>%s</i>" for missing child nodes ...', $nodeType->getName()));
            $this->createChildNodesByNodeType($nodeType, $workspaceName, $dryRun);
        } else {
            $this->dispatch(self::EVENT_NOTICE, 'Checking for missing child nodes ...');
            foreach ($this->nodeTypeManager->getNodeTypes() as $nodeType) {
                /** @var NodeType $nodeType */
                if ($nodeType->isAbstract()) {
                    continue;
                }
                $this->createChildNodesByNodeType($nodeType, $workspaceName, $dryRun);
            }
        }

        $this->persistenceManager->persistAll();
    }
protected function createMissingChildNodes($workspaceName, $dryRun, NodeType $nodeType = null)
    {
        if ($nodeType !== null) {
            $this->dispatch(self::EVENT_NOTICE, sprintf('Checking nodes of type "<i>%s</i>" for missing child nodes ...', $nodeType->getName()));
            $this->createChildNodesByNodeType($nodeType, $workspaceName, $dryRun);
        } else {
            $this->dispatch(self::EVENT_NOTICE, 'Checking for missing child nodes ...');
            foreach ($this->nodeTypeManager->getNodeTypes() as $nodeType) {
                /** @var NodeType $nodeType */
                if ($nodeType->isAbstract()) {
                    continue;
                }
                $this->createChildNodesByNodeType($nodeType, $workspaceName, $dryRun);
            }
        }

        $this->persistenceManager->persistAll();
    }
protected function createMissingChildNodes ( $ workspaceName , $ dryRun , NodeType $ nodeType = null ) { if ( $ nodeType !== null ) { $ this -> dispatch ( self :: EVENT_NOTICE , sprintf ( 'Checking nodes of type "<i>%s</i>" for missing child nodes ...' , $ nodeType -> getName ( ) ) ) ; $ this -> createChildNodesByNodeType ( $ nodeType , $ workspaceName , $ dryRun ) ; } else { $ this -> dispatch ( self :: EVENT_NOTICE , 'Checking for missing child nodes ...' ) ; foreach ( $ this -> nodeTypeManager -> getNodeTypes ( ) as $ nodeType ) { /** @var NodeType $nodeType */ if ( $ nodeType -> isAbstract ( ) ) { continue ; } $ this -> createChildNodesByNodeType ( $ nodeType , $ workspaceName , $ dryRun ) ; } } $ this -> persistenceManager -> persistAll ( ) ; }
Performs checks for missing child nodes according to the node's auto-create configuration and creates
them if necessary.

@param string $workspaceName Name of the workspace to consider
@param boolean $dryRun Simulate?
@param NodeType $nodeType Only for this node type, if specified
@return void
@throws NodeConfigurationException
@throws NodeTypeNotFoundException
Performs checks for missing child nodes according to the node s auto - create configuration and creates them if necessary .