CCrmComponentHelper::getRequisiteAutocompleteFieldInfoData

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmComponentHelper
  4. getRequisiteAutocompleteFieldInfoData
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_component_helper.php
  • Класс: \CCrmComponentHelper
  • Вызов: CCrmComponentHelper::getRequisiteAutocompleteFieldInfoData
static function getRequisiteAutocompleteFieldInfoData(int $countryId): array
{
	$clientResolverPropertyType = ClientResolver::getClientResolverPropertyWithPlacements($countryId);
	$placementParams = ClientResolver::getClientResolverPlacementParams($countryId);
	$featureRestriction = ClientResolver::getRestriction($countryId);

	return [
		'enabled' => !!$clientResolverPropertyType,
		'featureRestrictionCallback' =>
			$featureRestriction ? $featureRestriction->prepareInfoHelperScript() : ''
		,
		'placeholder' => ClientResolver::getClientResolverPlaceholderText($countryId),
		'feedback_form' => EntityRequisite::getRequisiteFeedbackFormParams(),
		'clientResolverPlacementParams' => $placementParams
	];
}

Добавить комментарий