• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/Service/EditorAdapter.php
  • Класс: Bitrix\Crm\Service\EditorAdapter
  • Вызов: EditorAdapter::addEntityDataForParentEntityField
protected function addEntityDataForParentEntityField(
	array $field,
	array $entityData,
	?int $value
): array
{
	$key = ($field['name'] ?? null);
	if (!$key)
	{
		return $entityData;
	}
	$entityData[$key] = $value;

	$fieldName = $field['name'];
	$infoKey = $field['data']['info'] ?? ($fieldName . '_INFO');
	if($value > 0)
	{
		$entityData[$infoKey] = $this->prepareCrmEntityData($field, $value);
	}

	return $entityData;
}