• Модуль: mobileapp
  • Путь к файлу: ~/bitrix/modules/mobileapp/lib/janative/manager.php
  • Класс: BitrixMobileAppJanativeManager
  • Вызов: Manager::getWorkspaces
static function getWorkspaces(): array
    {
        if (self::$workspaces == null)
        {
            self::$workspaces = [];
            $events = EventManager::getInstance()->findEventHandlers('mobileapp', 'onJNComponentWorkspaceGet');
            foreach ($events as $event)
            {
                $path = ExecuteModuleEventEx($event);
                if (!in_array($path, self::$workspaces))
                {
                    self::$workspaces[] = $path;
                }
            }
        }

        return self::$workspaces;
    }