public function afterNodeCreate(NodeInterface $node)
    {
        if (!($nodeType = $node->getNodeType())) {
            return;
        }
        // array with [beforeNodes, childNodes, afterNodes] keys
        $config = $this->getAssistanceConfigForNodeType($nodeType->getName());

        switch ($nodeType->getName()) {
            case 'TYPO3.Neos.NodeTypes:Image':
                $this->configureImage($node, $nodeType, $config);
                break;

            case 'M12.Foundation:GridRow1Col':
            case 'M12.Foundation:GridRow2Col':
            case 'M12.Foundation:GridRow3Col':
            case 'M12.Foundation:GridRow4Col':
                $this->configureGridRow($node, $nodeType);
                break;

            case 'M12.Foundation:GridColumn':
                break; // assistance text nodes are created from $this->configureGridRow()

            case 'M12.Foundation:RevealModal':
                $this->configureLinkingButton($node, $nodeType, $config, 'htmlDataRevealId');
                break;

            case 'M12.Foundation:Dropdown':
            case 'M12.Foundation:DropdownContent':
                $this->configureLinkingButton($node, $nodeType, $config, 'htmlDataDropdownId');
                break;

            default:
                $this->configureCreateAssistanceChildNodes($node, $nodeType, $config);
                break;
        }
    }
public function afterNodeCreate(NodeInterface $node)
    {
        if (!($nodeType = $node->getNodeType())) {
            return;
        }
        // array with [beforeNodes, childNodes, afterNodes] keys
        $config = $this->getAssistanceConfigForNodeType($nodeType->getName());

        switch ($nodeType->getName()) {
            case 'TYPO3.Neos.NodeTypes:Image':
                $this->configureImage($node, $nodeType, $config);
                break;

            case 'M12.Foundation:GridRow1Col':
            case 'M12.Foundation:GridRow2Col':
            case 'M12.Foundation:GridRow3Col':
            case 'M12.Foundation:GridRow4Col':
                $this->configureGridRow($node, $nodeType);
                break;

            case 'M12.Foundation:GridColumn':
                break; // assistance text nodes are created from $this->configureGridRow()

            case 'M12.Foundation:RevealModal':
                $this->configureLinkingButton($node, $nodeType, $config, 'htmlDataRevealId');
                break;

            case 'M12.Foundation:Dropdown':
            case 'M12.Foundation:DropdownContent':
                $this->configureLinkingButton($node, $nodeType, $config, 'htmlDataDropdownId');
                break;

            default:
                $this->configureCreateAssistanceChildNodes($node, $nodeType, $config);
                break;
        }
    }
public function afterNodeCreate ( NodeInterface $ node ) { if ( ! ( $ nodeType = $ node -> getNodeType ( ) ) ) { return ; } // array with [beforeNodes, childNodes, afterNodes] keys $ config = $ this -> getAssistanceConfigForNodeType ( $ nodeType -> getName ( ) ) ; switch ( $ nodeType -> getName ( ) ) { case 'TYPO3.Neos.NodeTypes:Image' : $ this -> configureImage ( $ node , $ nodeType , $ config ) ; break ; case 'M12.Foundation:GridRow1Col' : case 'M12.Foundation:GridRow2Col' : case 'M12.Foundation:GridRow3Col' : case 'M12.Foundation:GridRow4Col' : $ this -> configureGridRow ( $ node , $ nodeType ) ; break ; case 'M12.Foundation:GridColumn' : break ; // assistance text nodes are created from $this->configureGridRow() case 'M12.Foundation:RevealModal' : $ this -> configureLinkingButton ( $ node , $ nodeType , $ config , 'htmlDataRevealId' ) ; break ; case 'M12.Foundation:Dropdown' : case 'M12.Foundation:DropdownContent' : $ this -> configureLinkingButton ( $ node , $ nodeType , $ config , 'htmlDataDropdownId' ) ; break ; default : $ this -> configureCreateAssistanceChildNodes ( $ node , $ nodeType , $ config ) ; break ; } }
Hooks into `afterNodeCreate` event dispatched from CR,
when new node has been created.

@param NodeInterface $node
Hooks into afterNodeCreate event dispatched from CR when new node has been created .