• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/infrastructure/formatcode.php
  • Класс: BitrixLocationInfrastructureFormatCode
  • Вызов: FormatCode::setCurrent
static function setCurrent(string $formatCode, string $siteId = ''): void
{
	Option::set(
		'location',
		static::$optionName,
		$formatCode,
		$siteId
	);

	$event = new Event('location', static::$onChangedEventName, ['formatCode' => $formatCode]);
	$event->send();
}