Neos\ContentRepository\Domain\Service\ImportExport\ImportExportPropertyMappingConfiguration::getTargetPropertyName PHP Метод

getTargetPropertyName() публичный Метод

Can be used to rename properties from source to target.
public getTargetPropertyName ( string $sourcePropertyName ) : string
$sourcePropertyName string
Результат string property name of target
    public function getTargetPropertyName($sourcePropertyName)
    {
        // TODO: This if statement is necessary for smooth migration to the new resource/media management. "originalImage" is deprecated, this can be removed in 3 versions.
        if ($sourcePropertyName === 'originalImage') {
            return 'originalAsset';
        }
        return $sourcePropertyName;
    }