RestProviderTable::getLocalization: Bitrix method

      
<?php 
//  Bitrix\Bizproc\RestProviderTable :: getLocalization()
//  /dist/bitrix/modules/bizproc/lib/restprovider.php:162

    
public static function getLocalization($field$langId)
    {
        
$result '';
        
$langId strtoupper($langId);
        if (
is_string($field))
            
$result $field;
        elseif (!empty(
$field[$langId]))
            
$result $field[$langId];
        elseif (
$langId == 'UA' && !empty($field['RU']))
            
$result $field['RU'];
        elseif (!empty(
$field['EN']))
            
$result $field['EN'];
        elseif (!empty(
$field['*']))
            
$result $field['*'];
        return 
$result;
    }