Documentation

switchDomain

Site::switchDomain(
   int $siteId1,
   int $siteId2
)

Method "switches" site domains between each other. Returns true on success. Sites must be located in a single scope.

Parameters

Parameter Description Available from version
siteId1 First site ID
siteId2 Second site ID

Example



© «Bitrix24», 2001-2024
Up