@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 28 lines 638 B view raw
1<?php 2 3final class PhabricatorProfileMenuItemIndexEngineExtension 4 extends PhabricatorEdgeIndexEngineExtension { 5 6 const EXTENSIONKEY = 'profile.menu.item'; 7 8 public function getExtensionName() { 9 return pht('Profile Menu Item'); 10 } 11 12 public function shouldIndexObject($object) { 13 if (!($object instanceof PhabricatorProfileMenuItemConfiguration)) { 14 return false; 15 } 16 17 return true; 18 } 19 20 protected function getIndexEdgeType() { 21 return PhabricatorProfileMenuItemAffectsObjectEdgeType::EDGECONST; 22 } 23 24 protected function getIndexDestinationPHIDs($object) { 25 return $object->getAffectedObjectPHIDs(); 26 } 27 28}