• Модуль: landing
  • Путь к файлу: ~/bitrix/modules/landing/lib/restriction/manager.php
  • Класс: BitrixLandingRestrictionManager
  • Вызов: Manager::getMapItem
static function getMapItem(string $code): ?array
{
	static $scopeId = null;

	if (isset(self::MAP[$code]))
	{
		if ($scopeId === null)
		{
			$scopeId = strtolower(BitrixLandingSiteType::getCurrentScopeId());
		}
		$item = self::MAP[$code];
		$item['code'] = $item['scope_alias'][$scopeId] ?? $code;
		return $item;
	}
	return null;
}