• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/format/converter/arrayconverter.php
  • Класс: BitrixLocationEntityFormatConverterArrayConverter
  • Вызов: ArrayConverter::convertTemplateCollectionToArray
static function convertTemplateCollectionToArray(FormatTemplateCollection $templateCollection): array
{
	$result = [];

	/** @var FormatTemplate $template */
	foreach ($templateCollection as $template)
	{
		$result[$template->getType()] = $template->getTemplate();
	}

	return $result;
}