src/Sulu/Component/Util/SuluNodeHelper.php
public function getStructureTypeForNode(NodeInterface $node)
    {
        $mixinTypes = $node->getPropertyValueWithDefault('jcr:mixinTypes', []);

        if (in_array('sulu:' . Structure::TYPE_PAGE, $mixinTypes)) {
            return Structure::TYPE_PAGE;
        }

        if (in_array('sulu:' . Structure::TYPE_SNIPPET, $mixinTypes)) {
            return Structure::TYPE_SNIPPET;
        }

        return;
    }
public function getStructureTypeForNode(NodeInterface $node)
    {
        $mixinTypes = $node->getPropertyValueWithDefault('jcr:mixinTypes', []);

        if (in_array('sulu:' . Structure::TYPE_PAGE, $mixinTypes)) {
            return Structure::TYPE_PAGE;
        }

        if (in_array('sulu:' . Structure::TYPE_SNIPPET, $mixinTypes)) {
            return Structure::TYPE_SNIPPET;
        }

        return;
    }
public function getStructureTypeForNode ( NodeInterface $ node ) { $ mixinTypes = $ node -> getPropertyValueWithDefault ( 'jcr:mixinTypes' , [ ] ) ; if ( in_array ( 'sulu:' . Structure :: TYPE_PAGE , $ mixinTypes ) ) { return Structure :: TYPE_PAGE ; } if ( in_array ( 'sulu:' . Structure :: TYPE_SNIPPET , $ mixinTypes ) ) { return Structure :: TYPE_SNIPPET ; } return ; }
Return the structure type for the given node.

@param NodeInterface $node

@return string
Return the structure type for the given node .