@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 47 lines 912 B view raw
1<?php 2 3final class DifferentialHostField 4 extends DifferentialCustomField { 5 6 public function getFieldKey() { 7 return 'differential:host'; 8 } 9 10 public function getFieldName() { 11 return pht('Host'); 12 } 13 14 public function getFieldDescription() { 15 return pht('Shows the local host where the diff came from.'); 16 } 17 18 public function shouldDisableByDefault() { 19 return true; 20 } 21 22 public function shouldAppearInPropertyView() { 23 return true; 24 } 25 26 public function renderPropertyViewValue(array $handles) { 27 return null; 28 } 29 30 public function shouldAppearInDiffPropertyView() { 31 return true; 32 } 33 34 public function renderDiffPropertyViewLabel(DifferentialDiff $diff) { 35 return $this->getFieldName(); 36 } 37 38 public function renderDiffPropertyViewValue(DifferentialDiff $diff) { 39 $host = $diff->getSourceMachine(); 40 if (!$host) { 41 return null; 42 } 43 44 return $host; 45 } 46 47}