Document/Subscriber/ArticleSubscriber.php
private function getChildren(NodeInterface $node)
    {
        $result = [];
        foreach ($node->getNodes() as $child) {
            $result[$child->getIdentifier()] = $child;
        }

        return $result;
    }
private function getChildren(NodeInterface $node)
    {
        $result = [];
        foreach ($node->getNodes() as $child) {
            $result[$child->getIdentifier()] = $child;
        }

        return $result;
    }
private function getChildren ( NodeInterface $ node ) { $ result = [ ] ; foreach ( $ node -> getNodes ( ) as $ child ) { $ result [ $ child -> getIdentifier ( ) ] = $ child ; } return $ result ; }
Returns children of given node.

@param NodeInterface $node

@return NodeInterface[]
Returns children of given node .