@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 42 lines 871 B view raw
1<?php 2 3final class PhabricatorVoidDocumentEngine 4 extends PhabricatorDocumentEngine { 5 6 const ENGINEKEY = 'void'; 7 8 public function getViewAsLabel(PhabricatorDocumentRef $ref) { 9 return null; 10 } 11 12 protected function getDocumentIconIcon(PhabricatorDocumentRef $ref) { 13 return 'fa-file'; 14 } 15 16 protected function getContentScore(PhabricatorDocumentRef $ref) { 17 return 1000; 18 } 19 20 protected function getByteLengthLimit() { 21 return null; 22 } 23 24 protected function canRenderDocumentType(PhabricatorDocumentRef $ref) { 25 return true; 26 } 27 28 protected function newDocumentContent(PhabricatorDocumentRef $ref) { 29 $message = pht( 30 'No document engine can render the contents of this file.'); 31 32 $container = phutil_tag( 33 'div', 34 array( 35 'class' => 'document-engine-message', 36 ), 37 $message); 38 39 return $container; 40 } 41 42}