• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/controller/format.php
  • Класс: BitrixLocationControllerFormat
  • Вызов: Format::findByCodeAction
public function findByCodeAction(string $formatCode, string $languageId)
{
	$result = [];

	if($format = ServiceFormatService::getInstance()->findByCode($formatCode, $languageId))
	{
		$result = EntityFormatConverterArrayConverter::convertToArray($format);
	}

	return $result;
}