• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/sourceselector.php
  • Класс: BitrixLocationSourceSourceSelector
  • Вызов: SourceSelector::setGoogleSource
static function setGoogleSource(string $frontendKey, string $backendKey): Result
{
	$sourceSelector = new self();
	$configFactory = new GoogleConfigFactory($frontendKey, $backendKey);
	return $sourceSelector->setSource(Factory::GOOGLE_SOURCE_CODE, $configFactory);
}