@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 PhabricatorStandardCustomFieldHeader
4 extends PhabricatorStandardCustomField {
5
6 public function getFieldType() {
7 return 'header';
8 }
9
10 public function renderEditControl(array $handles) {
11 $header = phutil_tag(
12 'div',
13 array(
14 'class' => 'phabricator-standard-custom-field-header',
15 ),
16 $this->getFieldName());
17 return id(new AphrontFormStaticControl())
18 ->setValue($header);
19 }
20
21 public function shouldUseStorage() {
22 return false;
23 }
24
25 public function getStyleForPropertyView() {
26 return 'header';
27 }
28
29 protected function renderValue() {
30 return $this->getFieldName();
31 }
32
33 public function shouldAppearInApplicationSearch() {
34 return false;
35 }
36
37 public function shouldAppearInConduitTransactions() {
38 return false;
39 }
40
41}