Neos.ContentRepository/Classes/Domain/Model/NodeType.php
protected static function getFlattenedSuperTypes(NodeType $nodeType) : array
    {
        $flattenedSuperTypes = [];
        foreach ($nodeType->declaredSuperTypes as $superTypeName => $superType) {
            if ($superType !== null) {
                $flattenedSuperTypes += static::getFlattenedSuperTypes($superType);
                $flattenedSuperTypes[$superTypeName] = $superType;
            }
        }

        foreach ($nodeType->declaredSuperTypes as $superTypeName => $superType) {
            if ($superType === null) {
                unset($flattenedSuperTypes[$superTypeName]);
            }
        }

        return $flattenedSuperTypes;
    }
protected static function getFlattenedSuperTypes(NodeType $nodeType) : array
    {
        $flattenedSuperTypes = [];
        foreach ($nodeType->declaredSuperTypes as $superTypeName => $superType) {
            if ($superType !== null) {
                $flattenedSuperTypes += static::getFlattenedSuperTypes($superType);
                $flattenedSuperTypes[$superTypeName] = $superType;
            }
        }

        foreach ($nodeType->declaredSuperTypes as $superTypeName => $superType) {
            if ($superType === null) {
                unset($flattenedSuperTypes[$superTypeName]);
            }
        }

        return $flattenedSuperTypes;
    }
protected static function getFlattenedSuperTypes ( NodeType $ nodeType ) : array { $ flattenedSuperTypes = [ ] ; foreach ( $ nodeType -> declaredSuperTypes as $ superTypeName => $ superType ) { if ( $ superType !== null ) { $ flattenedSuperTypes += static :: getFlattenedSuperTypes ( $ superType ) ; $ flattenedSuperTypes [ $ superTypeName ] = $ superType ; } } foreach ( $ nodeType -> declaredSuperTypes as $ superTypeName => $ superType ) { if ( $ superType === null ) { unset ( $ flattenedSuperTypes [ $ superTypeName ] ) ; } } return $ flattenedSuperTypes ; }
Returns a flat list of super types to inherit from.

@param NodeType $nodeType

@return array
Returns a flat list of super types to inherit from .