• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/landing/site.php
  • Класс: Bitrix\Sender\Integration\Landing\Site
  • Вызов: Site::getLandingAndStorePublicUrls
static function getLandingAndStorePublicUrls(): array
{
	if (!static::canUse())
	{
		return [];
	}

	$siteIds = \Bitrix\Landing\Site::getList([
		'select' => [
			'ID',
		],
		'filter' => [
			'@TYPE' => ['PAGE', 'STORE'],
		],
	]);
	$siteIds = array_column($siteIds->fetchAll(), 'ID');

	if (empty($siteIds))
	{
		return [];
	}

	return array_values((array)\Bitrix\Landing\Site::getPublicUrl($siteIds));
}