Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / search / engineextension / PhabricatorProfileMenuItemIndexEngineExtension.php
blob078e51058c48289ee2f6c246f88c69bb7e5d35c0
1 <?php
3 final class PhabricatorProfileMenuItemIndexEngineExtension
4 extends PhabricatorEdgeIndexEngineExtension {
6 const EXTENSIONKEY = 'profile.menu.item';
8 public function getExtensionName() {
9 return pht('Profile Menu Item');
12 public function shouldIndexObject($object) {
13 if (!($object instanceof PhabricatorProfileMenuItemConfiguration)) {
14 return false;
17 return true;
20 protected function getIndexEdgeType() {
21 return PhabricatorProfileMenuItemAffectsObjectEdgeType::EDGECONST;
24 protected function getIndexDestinationPHIDs($object) {
25 return $object->getAffectedObjectPHIDs();