@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
at upstream/main 31 lines 739 B view raw
1<?php 2 3abstract class HeraldController extends PhabricatorController { 4 5 public function buildApplicationMenu() { 6 return $this->buildSideNavView()->getMenu(); 7 } 8 9 public function buildSideNavView() { 10 $viewer = $this->getViewer(); 11 12 $nav = new AphrontSideNavFilterView(); 13 $nav->setBaseURI(new PhutilURI($this->getApplicationURI())); 14 15 id(new HeraldRuleSearchEngine()) 16 ->setViewer($viewer) 17 ->addNavigationItems($nav->getMenu()); 18 19 $nav->addLabel(pht('Utilities')) 20 ->addFilter('test', pht('Test Console')) 21 ->addFilter('transcript', pht('Transcripts')); 22 23 $nav->addLabel(pht('Webhooks')) 24 ->addFilter('webhook', pht('Webhooks')); 25 26 $nav->selectFilter(null); 27 28 return $nav; 29 } 30 31}