• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/ui/entityselector/countryprovider.php
  • Класс: Bitrix\Crm\Integration\UI\EntitySelector\CountryProvider
  • Вызов: CountryProvider::makeItem
private function makeItem(int $id, int $phoneCode, string $code, string $name): Item
{
	$itemOptions = [
		'id' => $code,
		'entityId' => static::ENTITY_ID,
		'title' => $phoneCode === 0 ? $name : sprintf('%s (+%d)', $name, $phoneCode),
		'avatar' => static::getIconByCode($code),
		'customData' => [
			'countryId' => $id,
			'phoneCode' => $phoneCode,
		]
	];

	return new Item($itemOptions);
}