Neos.ContentRepository/Classes/TypeConverter/NodeTemplateConverter.php
protected function extractNodeType($targetType, array $source)
    {
        if (isset($source['__nodeType'])) {
            $nodeTypeName = $source['__nodeType'];
        } else {
            $matches = [];
            preg_match(self::EXTRACT_CONTENT_TYPE_PATTERN, $targetType, $matches);
            if (isset($matches['nodeType'])) {
                $nodeTypeName = $matches['nodeType'];
            } else {
                $nodeTypeName = 'unstructured';
            }
        }
        return $this->nodeTypeManager->getNodeType($nodeTypeName);
    }
protected function extractNodeType($targetType, array $source)
    {
        if (isset($source['__nodeType'])) {
            $nodeTypeName = $source['__nodeType'];
        } else {
            $matches = [];
            preg_match(self::EXTRACT_CONTENT_TYPE_PATTERN, $targetType, $matches);
            if (isset($matches['nodeType'])) {
                $nodeTypeName = $matches['nodeType'];
            } else {
                $nodeTypeName = 'unstructured';
            }
        }
        return $this->nodeTypeManager->getNodeType($nodeTypeName);
    }
protected function extractNodeType ( $ targetType , array $ source ) { if ( isset ( $ source [ '__nodeType' ] ) ) { $ nodeTypeName = $ source [ '__nodeType' ] ; } else { $ matches = [ ] ; preg_match ( self :: EXTRACT_CONTENT_TYPE_PATTERN , $ targetType , $ matches ) ; if ( isset ( $ matches [ 'nodeType' ] ) ) { $ nodeTypeName = $ matches [ 'nodeType' ] ; } else { $ nodeTypeName = 'unstructured' ; } } return $ this -> nodeTypeManager -> getNodeType ( $ nodeTypeName ) ; }
Detects the requested node type and returns a corresponding NodeType instance.

@param string $targetType
@param array $source
@return NodeType
Detects the requested node type and returns a corresponding NodeType instance .