@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
3final class PholioMockRelationshipSource
4 extends PhabricatorObjectRelationshipSource {
5
6 public function isEnabledForObject($object) {
7 $viewer = $this->getViewer();
8
9 return PhabricatorApplication::isClassInstalledForViewer(
10 PhabricatorPholioApplication::class,
11 $viewer);
12 }
13
14 public function getResultPHIDTypes() {
15 return array(
16 PholioMockPHIDType::TYPECONST,
17 );
18 }
19
20 public function getFilters() {
21 $filters = parent::getFilters();
22 unset($filters['assigned']);
23 return $filters;
24 }
25
26}