Neos\Media\TypeConverter\AssetInterfaceConverter::applyModelMappingStrategy PHP Метод

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

The strategy is NOT applied if $source['__type'] is set (overriding was allowed then, otherwise an exception would have been thrown earlier).
protected applyModelMappingStrategy ( string $originalTargetType, PersistentResource $resource, array $source = [] ) : string
$originalTargetType string The original target type determined so far
$resource Neos\Flow\ResourceManagement\PersistentResource The resource that is to be converted to a media file.
$source array the original source properties for this type converter.
Результат string Class name of the media model to use for the given resource
    protected function applyModelMappingStrategy($originalTargetType, PersistentResource $resource, array $source = array())
    {
        $finalTargetType = $originalTargetType;
        if (!isset($source['__type'])) {
            $finalTargetType = $this->assetModelMappingStrategy->map($resource, $source);
        }
        return $finalTargetType;
    }