Base :: renderPublicMultipleWrapper: Bitrix method

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

    
protected static function renderPublicMultipleWrapper(FieldType $fieldType, array $field, array $controls)
    {
        
$messageAdd Loc::getMessage('BPDT_BASE_ADD');

        
$name Main\Text\HtmlFilter::encode(\CUtil::JSEscape(static::generateControlName($field)));
        
$property Main\Text\HtmlFilter::encode(Main\Web\Json::encode($fieldType->getProperty()));

        
$renderResult implode(''$controls) . <<<HTML
                <div>
                    <a onclick="BX.Bizproc.FieldType.cloneControl(
{$property}, '{$name}', this.parentNode); return false;"
                        class="bizproc-type-control-clone-btn">
                        
{$messageAdd}
                    </a>
                </div>
HTML;
        return 
$renderResult;
    }