Differential D8286 Diff 19727 src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldHeader.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/customfield/standard/PhabricatorStandardCustomFieldHeader.php
| <?php | <?php | ||||
| final class PhabricatorStandardCustomFieldHeader | final class PhabricatorStandardCustomFieldHeader | ||||
| extends PhabricatorStandardCustomField { | extends PhabricatorStandardCustomField { | ||||
| public function getFieldType() { | public function getFieldType() { | ||||
| return 'header'; | return 'header'; | ||||
| } | } | ||||
| public function renderEditControl() { | public function renderEditControl(array $handles) { | ||||
| $header = phutil_tag( | $header = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-standard-custom-field-header', | 'class' => 'phabricator-standard-custom-field-header', | ||||
| ), | ), | ||||
| $this->getFieldName()); | $this->getFieldName()); | ||||
| return id(new AphrontFormStaticControl()) | return id(new AphrontFormStaticControl()) | ||||
| ->setValue($header); | ->setValue($header); | ||||
| Show All 15 Lines | |||||