Page MenuHomec4science

PhabricatorStandardCustomFieldHeader.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 11:13

PhabricatorStandardCustomFieldHeader.php

<?php
final class PhabricatorStandardCustomFieldHeader
extends PhabricatorStandardCustomField {
public function getFieldType() {
return 'header';
}
public function renderEditControl(array $handles) {
$header = phutil_tag(
'div',
array(
'class' => 'phabricator-standard-custom-field-header',
),
$this->getFieldName());
return id(new AphrontFormStaticControl())
->setValue($header);
}
public function shouldUseStorage() {
return false;
}
public function getStyleForPropertyView() {
return 'header';
}
public function renderPropertyViewValue(array $handles) {
return $this->getFieldName();
}
public function shouldAppearInApplicationSearch() {
return false;
}
}

Event Timeline