Neos.Neos/Classes/Service/VieSchemaBuilder.php
protected function getAllAncestors($type)
    {
        if (!isset($this->superTypeConfiguration[$type])) {
            return [];
        }
        $ancestors = $this->superTypeConfiguration[$type];

        foreach ($this->superTypeConfiguration[$type] as $currentSuperType) {
            if (isset($this->types[$currentSuperType])) {
                $currentSuperTypeAncestors = $this->getAllAncestors($currentSuperType);
                $ancestors = array_merge($ancestors, $currentSuperTypeAncestors);
            }
        }

        return $ancestors;
    }
protected function getAllAncestors($type)
    {
        if (!isset($this->superTypeConfiguration[$type])) {
            return [];
        }
        $ancestors = $this->superTypeConfiguration[$type];

        foreach ($this->superTypeConfiguration[$type] as $currentSuperType) {
            if (isset($this->types[$currentSuperType])) {
                $currentSuperTypeAncestors = $this->getAllAncestors($currentSuperType);
                $ancestors = array_merge($ancestors, $currentSuperTypeAncestors);
            }
        }

        return $ancestors;
    }
protected function getAllAncestors ( $ type ) { if ( ! isset ( $ this -> superTypeConfiguration [ $ type ] ) ) { return [ ] ; } $ ancestors = $ this -> superTypeConfiguration [ $ type ] ; foreach ( $ this -> superTypeConfiguration [ $ type ] as $ currentSuperType ) { if ( isset ( $ this -> types [ $ currentSuperType ] ) ) { $ currentSuperTypeAncestors = $ this -> getAllAncestors ( $ currentSuperType ) ; $ ancestors = array_merge ( $ ancestors , $ currentSuperTypeAncestors ) ; } } return $ ancestors ; }
Return all ancestors of a node type

@param string $type
@return array
Return all ancestors of a node type