Base::renderControlSingle: Bitrix method

      
<?php 
//  Bitrix\Bizproc\BaseType\Base :: renderControlSingle()
//  /dist/bitrix/modules/bizproc/lib/basetype/base.php:412

    
public static function renderControlSingle(FieldType $fieldType, array $field$value$allowSelection$renderMode)
    {
        
$value = static::toSingleValue($fieldType$value);
        
$selectorValue null;
        if (
$allowSelection && \CBPActivity::isExpression($value))
        {
            
$selectorValue $value;
            
$value null;
        }

        
$renderResult = static::renderControl($fieldType$field$value$allowSelection$renderMode);

        if (
$allowSelection)
        {
            
$renderResult .= static::renderControlSelector($field$selectorValuetrue''$fieldType);
        }

        return 
$renderResult;
    }