• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/entity/source.php
  • Класс: BitrixLocationEntitySource
  • Вызов: Source::getAutocompleteReplacements
public function getAutocompleteReplacements(string $languageId): array
{
	if($this->autocompleteReplacements === null)
	{
		$this->autocompleteReplacements = [];

		$path = Context::getCurrent()->getServer()->getDocumentRoot()
			. '/bitrix/modules/location/lang/'
			. $languageId
			. '/lib/source/'
			. strtolower($this->code)
			. '/autocompletereplacements.php';

		if (File::isFileExists($path))
		{
			$this->autocompleteReplacements = StreamConverter::include($path, $languageId);
		}
	}

	return $this->autocompleteReplacements;
}