Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldHeader.php
12242 views
1
<?php
2
3
final 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
public function renderPropertyViewValue(array $handles) {
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
}
42
43