• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/source/google/googlesource.php
  • Класс: BitrixLocationSourceGoogleGoogleSource
  • Вызов: GoogleSource::getFrontendKey
private function getFrontendKey(): string
{
	$key = $this->config->getValue('API_KEY_FRONTEND');
	if ($key)
	{
		return (string)$key;
	}

	$key = Option::get('location', 'google_map_api_key', '');
	if ($key !== '')
	{
		return (string)$key;
	}

	if (Loader::includeModule('fileman'))
	{
		$key = FilemanUserFieldTypesAddressType::getApiKey();
		if ($key !== '' && !is_null($key))
		{
			return $key;
		}
	}

	return '';
}