mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-16 11:52:40 +01:00
3ec07c4987
Summary: Ref T8980. This isn't 100% coverage but should be pretty much all of the common ones. These feel a touch iffy to me at first glance so I didn't go crazy trying to hunt all of them down. I have some other plans for them so maybe they'll feel better by the end of it. Test Plan: Hovered over author, reviewers, blocked tasks, projects, etc. Reviewers: chad Reviewed By: chad Maniphest Tasks: T8980 Differential Revision: https://secure.phabricator.com/D14877
38 lines
798 B
PHP
38 lines
798 B
PHP
<?php
|
|
|
|
final class DifferentialAuthorField
|
|
extends DifferentialCustomField {
|
|
|
|
public function getFieldKey() {
|
|
return 'differential:author';
|
|
}
|
|
|
|
public function getFieldName() {
|
|
return pht('Author');
|
|
}
|
|
|
|
public function getFieldDescription() {
|
|
return pht('Stores the revision author.');
|
|
}
|
|
|
|
public function canDisableField() {
|
|
return false;
|
|
}
|
|
|
|
public function shouldAppearInPropertyView() {
|
|
return true;
|
|
}
|
|
|
|
public function renderPropertyViewLabel() {
|
|
return $this->getFieldName();
|
|
}
|
|
|
|
public function getRequiredHandlePHIDsForPropertyView() {
|
|
return array($this->getObject()->getAuthorPHID());
|
|
}
|
|
|
|
public function renderPropertyViewValue(array $handles) {
|
|
return $handles[$this->getObject()->getAuthorPHID()]->renderHovercardLink();
|
|
}
|
|
|
|
}
|