Neos\Neos\Service\VieSchemaBuilder::getAllSubtypes PHP Метод

getAllSubtypes() защищенный Метод

Return all sub node types of a node type (recursively)
protected getAllSubtypes ( string $type ) : array
$type string
Результат array
    protected function getAllSubtypes($type)
    {
        $subTypes = array();
        foreach ($this->superTypeConfiguration as $nodeType => $superTypes) {
            if (in_array($type, $superTypes)) {
                if (isset($this->types[$nodeType])) {
                    $subTypes[] = $nodeType;
                    $nodeTypeSubTypes = $this->getAllSubtypes($nodeType);
                    foreach ($nodeTypeSubTypes as $nodeTypeSubType) {
                        if (!in_array($nodeTypeSubType, $subTypes)) {
                            $subTypes[] = $nodeTypeSubType;
                        }
                    }
                }
            }
        }
        return $subTypes;
    }