Select::formatValueSingle: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\Select :: formatValueSingle()
//  /dist/bitrix/modules/bizproc/lib/basetype/select.php:414

    
public static function formatValueSingle(FieldType $fieldType$value$format 'printable')
    {
        if (\
CBPHelper::isAssociativeArray($value))
        {
            
$keys array_keys($value);
            
$value = isset($keys[0]) ? $keys[0] : null;
        }
        return 
parent::formatValueSingle($fieldType$value$format);
    }