• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/publicaction/site.php
  • Класс: Bitrix\Landing\PublicAction\Site
  • Вызов: Site::moveFolder
static function moveFolder(int $folderId, ?int $toFolderId, ?int $toSiteId = null): PublicActionResult
{
	$result = new PublicActionResult();
	$error = new \Bitrix\Landing\Error;
	$moveResult = SiteCore::moveFolder($folderId, $toFolderId ?: null, $toSiteId ?: null);

	if ($moveResult->isSuccess())
	{
		$result->setResult($moveResult->getId());
	}
	else
	{
		$error->addFromResult($moveResult);
		$result->setError($error);
	}

	return $result;
}