Neos\ContentRepository\TypeConverter\NodeTemplateConverter::extractNodeType PHP Метод

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

Detects the requested node type and returns a corresponding NodeType instance.
protected extractNodeType ( string $targetType, array $source ) : NodeType
$targetType string
$source array
Результат Neos\ContentRepository\Domain\Model\NodeType
    protected function extractNodeType($targetType, array $source)
    {
        if (isset($source['__nodeType'])) {
            $nodeTypeName = $source['__nodeType'];
        } else {
            $matches = array();
            preg_match(self::EXTRACT_CONTENT_TYPE_PATTERN, $targetType, $matches);
            if (isset($matches['nodeType'])) {
                $nodeTypeName = $matches['nodeType'];
            } else {
                $nodeTypeName = 'unstructured';
            }
        }
        return $this->nodeTypeManager->getNodeType($nodeTypeName);
    }
NodeTemplateConverter