• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/help.php
  • Класс: BitrixLandingHelp
  • Вызов: Help::getHelpData
static function getHelpData(string $code, ?string $zone = null): array
{
	static $myZone = null;
	static $defaultZone = self::DEFAULT_ZONE_ID;

	if ($zone && isset(self::$helpUrl[$code][$zone]))
	{
		return [self::$helpUrl[$code][$zone], $zone];
	}

	if ($myZone === null)
	{
		$myZone = Manager::getZone();
	}

	if ($myZone == 'by' || $myZone == 'kz')
	{
		$myZone = 'ru';
	}

	$helpId = 0;
	$helpZone = '';

	if (isset(self::$helpUrl[$code]))
	{
		if (isset(self::$helpUrl[$code][$myZone]))
		{
			$helpId = self::$helpUrl[$code][$myZone];
			$helpZone = $myZone;
		}
		elseif (isset(self::$helpUrl[$code][$defaultZone]))
		{
			$helpId = self::$helpUrl[$code][$defaultZone];
			$helpZone = $defaultZone;
		}
	}

	return [$helpId, $helpZone];
}