Neos.Media/Classes/Domain/Model/AssetSource/Neos/NeosAssetSource.php
public function getPreviewUriForAsset(AssetInterface $asset): ?UriInterface
    {
        $actionRequest = ($this->asyncThumbnails ? $this->createActionRequest() : null);
        $thumbnailConfiguration = $this->thumbnailService->getThumbnailConfigurationForPreset('Neos.Media.Browser:Preview', ($actionRequest !== null));
        $thumbnailData = $this->assetService->getThumbnailUriAndSizeForAsset($asset, $thumbnailConfiguration, $actionRequest);
        return isset($thumbnailData['src']) ? new Uri($thumbnailData['src']) : null;
    }
public function getPreviewUriForAsset(AssetInterface $asset): ?UriInterface
    {
        $actionRequest = ($this->asyncThumbnails ? $this->createActionRequest() : null);
        $thumbnailConfiguration = $this->thumbnailService->getThumbnailConfigurationForPreset('Neos.Media.Browser:Preview', ($actionRequest !== null));
        $thumbnailData = $this->assetService->getThumbnailUriAndSizeForAsset($asset, $thumbnailConfiguration, $actionRequest);
        return isset($thumbnailData['src']) ? new Uri($thumbnailData['src']) : null;
    }
public function getPreviewUriForAsset ( AssetInterface $ asset ) : ? UriInterface { $ actionRequest = ( $ this -> asyncThumbnails ? $ this -> createActionRequest ( ) : null ) ; $ thumbnailConfiguration = $ this -> thumbnailService -> getThumbnailConfigurationForPreset ( 'Neos.Media.Browser:Preview' , ( $ actionRequest !== null ) ) ; $ thumbnailData = $ this -> assetService -> getThumbnailUriAndSizeForAsset ( $ asset , $ thumbnailConfiguration , $ actionRequest ) ; return isset ( $ thumbnailData [ 'src' ] ) ? new Uri ( $ thumbnailData [ 'src' ] ) : null ; }
Internal method used by NeosAssetProxy

@param AssetInterface $asset
@return Uri|null
@throws ThumbnailServiceException
@throws AssetServiceException
Internal method used by NeosAssetProxy