• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/domain/verification/basemanager.php
  • Класс: BitrixSaleDomainVerificationBaseManager
  • Вызов: BaseManager::getEntityList
static function getEntityList() : array;

/**
 * @param string $domain
 * @param string $path
 * @return bool
 * @throws MainArgumentException
 * @throws MainArgumentNullException
 * @throws MainLoaderException
 * @throws MainObjectPropertyException
 * @throws MainSystemException
 */
private static function addUrlRewrite(string $domain, string $path): bool
{
	$fields = [
		"CONDITION" => "#^{$path}#",
		"RULE" => "",
		"ID" => "",
		"PATH" => static::getUrlRewritePath(),
	];

	$siteId = self::getSiteIdByDomain($domain);
	if (!$siteId)
	{
		return false;
	}

	MainUrlRewriter::add($siteId, $fields);
	return true;
}