• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/baseform.php
  • Класс: BitrixCatalogComponentBaseForm
  • Вызов: BaseForm::getScopeByUrl
protected function getScopeByUrl(): string
{
	$result = '';

	$currentPath = Context::getCurrent()->getRequest()->getRequestUri();
	if (strncmp($currentPath, '/shop/', 6) === 0)
	{
		$result = self::SCOPE_SHOP;
	}
	elseif ($this->crmIncluded)
	{
		if (strncmp($currentPath, '/crm/', 5) === 0)
		{
			$result = self::SCOPE_CRM;
		}
	}

	return $result;
}