@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3abstract class PhabricatorGuideController extends PhabricatorController {
4
5 public function buildSideNavView($filter = null, $for_app = false) {
6
7 $nav = new AphrontSideNavFilterView();
8 $nav->setBaseURI(new PhutilURI($this->getApplicationURI()));
9 $nav->addLabel(pht('Guides'));
10
11 $modules = PhabricatorGuideModule::getEnabledModules();
12 foreach ($modules as $key => $module) {
13 $nav->addFilter($key.'/', $module->getModuleName());
14 }
15
16 return $nav;
17 }
18
19 public function buildApplicationMenu() {
20 return $this->buildSideNavView(null, true)->getMenu();
21 }
22
23}