File :: toSingleValue: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\File :: toSingleValue()
//  /dist/bitrix/modules/bizproc/lib/basetype/file.php:47

    
public static function toSingleValue(FieldType $fieldType$value)
    {
        if (
is_array($value))
        {
            if (\
CBPHelper::isAssociativeArray($value))
            {
                
$value array_keys($value);
            }
            
reset($value);
            
$value current($value);
        }

        return 
$value;
    }