• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/connector/ui/selectorprovider.php
  • Класс: BitrixLandingConnectorUiSelectorProvider
  • Вызов: SelectorProvider::getSiteIdFromDialog
protected function getSiteIdFromDialog(Dialog $dialog): ?int
{
	$entity = $dialog->getEntities()['landing'] ?? null;
	if ($entity)
	{
		if ($siteId = $entity->getOptions()['siteId'] ?? null)
		{
			Type::setScope($entity->getOptions()['siteType']);
			return $siteId;
		}
	}

	return null;
}