Neos.Neos/Classes/Aspects/NodeTypeConfigurationEnrichmentAspect.php
protected function resolveHelpMessageThumbnail($nodeTypeName, $configurationThumbnail)
    {
        if ($nodeTypeName !== null) {
            $thumbnailUrl = '';
            if (isset($configurationThumbnail)) {
                $thumbnailUrl = $configurationThumbnail;
                if (strpos($thumbnailUrl, 'resource://') === 0) {
                    $thumbnailUrl = $this->resourceManager->getPublicPackageResourceUriByPath($thumbnailUrl);
                }
            } else {
                # look in well know location
                $splitPrefix = $this->splitIdentifier($nodeTypeName);
                $relativePathAndFilename = 'NodeTypes/Thumbnails/' . $splitPrefix['id'] . '.png';
                $resourcePath = 'resource://' . $splitPrefix['packageKey'] . '/Public/' . $relativePathAndFilename;
                if (file_exists($resourcePath)) {
                    $thumbnailUrl = $this->resourceManager->getPublicPackageResourceUriByPath($resourcePath);
                }
            }
            return $thumbnailUrl;
        }
    }
protected function resolveHelpMessageThumbnail($nodeTypeName, $configurationThumbnail)
    {
        if ($nodeTypeName !== null) {
            $thumbnailUrl = '';
            if (isset($configurationThumbnail)) {
                $thumbnailUrl = $configurationThumbnail;
                if (strpos($thumbnailUrl, 'resource://') === 0) {
                    $thumbnailUrl = $this->resourceManager->getPublicPackageResourceUriByPath($thumbnailUrl);
                }
            } else {
                # look in well know location
                $splitPrefix = $this->splitIdentifier($nodeTypeName);
                $relativePathAndFilename = 'NodeTypes/Thumbnails/' . $splitPrefix['id'] . '.png';
                $resourcePath = 'resource://' . $splitPrefix['packageKey'] . '/Public/' . $relativePathAndFilename;
                if (file_exists($resourcePath)) {
                    $thumbnailUrl = $this->resourceManager->getPublicPackageResourceUriByPath($resourcePath);
                }
            }
            return $thumbnailUrl;
        }
    }
protected function resolveHelpMessageThumbnail ( $ nodeTypeName , $ configurationThumbnail ) { if ( $ nodeTypeName !== null ) { $ thumbnailUrl = '' ; if ( isset ( $ configurationThumbnail ) ) { $ thumbnailUrl = $ configurationThumbnail ; if ( strpos ( $ thumbnailUrl , 'resource://' ) === 0 ) { $ thumbnailUrl = $ this -> resourceManager -> getPublicPackageResourceUriByPath ( $ thumbnailUrl ) ; } } else { # look in well know location $ splitPrefix = $ this -> splitIdentifier ( $ nodeTypeName ) ; $ relativePathAndFilename = 'NodeTypes/Thumbnails/' . $ splitPrefix [ 'id' ] . '.png' ; $ resourcePath = 'resource://' . $ splitPrefix [ 'packageKey' ] . '/Public/' . $ relativePathAndFilename ; if ( file_exists ( $ resourcePath ) ) { $ thumbnailUrl = $ this -> resourceManager -> getPublicPackageResourceUriByPath ( $ resourcePath ) ; } } return $ thumbnailUrl ; } }
Resolve help message thumbnail url

@param string $nodeTypeName
@param string $configurationThumbnail
@return string $thumbnailUrl
Resolve help message thumbnail url