• Модуль: location
  • Путь к файлу: ~/bitrix/modules/location/lib/repository/location/database.php
  • Класс: BitrixLocationRepositoryLocationDatabase
  • Вызов: Database::findByText
public function findByText(string $text, string $languageId)
{
	if($text == '')
	{
		return null;
	}

	$text = Builder::build($languageId)->normalize($text);

	$result = $this->createQuery($languageId)
		->addFilter('%NAME.NAME_NORMALIZE', $text)
		->fetchCollection();

	return BitrixLocationEntityLocationConverterOrmConverter::createCollection($result, $languageId);
}