protected function getBasicNodeInformation(NodeInterface $node): array
    {
        return [
            'contextPath' => $node->getContextPath(),
            'name' => $node->getName(),
            'identifier' => $node->getIdentifier(),
            'nodeType' => $node->getNodeType()->getName(),
            'label' => $node->getLabel(),
            'isAutoCreated' => $node->isAutoCreated(),
            'depth' => $node->getDepth(),
            'children' => [],
            'matchesCurrentDimensions' => ($node instanceof Node && $node->dimensionsAreMatchingTargetDimensionValues())
        ];
    }
protected function getBasicNodeInformation(NodeInterface $node): array
    {
        return [
            'contextPath' => $node->getContextPath(),
            'name' => $node->getName(),
            'identifier' => $node->getIdentifier(),
            'nodeType' => $node->getNodeType()->getName(),
            'label' => $node->getLabel(),
            'isAutoCreated' => $node->isAutoCreated(),
            'depth' => $node->getDepth(),
            'children' => [],
            'matchesCurrentDimensions' => ($node instanceof Node && $node->dimensionsAreMatchingTargetDimensionValues())
        ];
    }
protected function getBasicNodeInformation ( NodeInterface $ node ) : array { return [ 'contextPath' => $ node -> getContextPath ( ) , 'name' => $ node -> getName ( ) , 'identifier' => $ node -> getIdentifier ( ) , 'nodeType' => $ node -> getNodeType ( ) -> getName ( ) , 'label' => $ node -> getLabel ( ) , 'isAutoCreated' => $ node -> isAutoCreated ( ) , 'depth' => $ node -> getDepth ( ) , 'children' => [ ] , 'matchesCurrentDimensions' => ( $ node instanceof Node && $ node -> dimensionsAreMatchingTargetDimensionValues ( ) ) ] ; }
Get the basic information about a node.

@param NodeInterface $node
@return array
Get the basic information about a node .