Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / releeph / field / specification / ReleephAuthorFieldSpecification.php
blob577280fddba17e0b188a051da2b7e8f7fbce9547
1 <?php
3 final class ReleephAuthorFieldSpecification
4 extends ReleephFieldSpecification {
6 public function getFieldKey() {
7 return 'author';
10 public function getName() {
11 return pht('Author');
14 public function getRequiredHandlePHIDsForPropertyView() {
15 $pull = $this->getReleephRequest();
16 $commit = $pull->loadPhabricatorRepositoryCommit();
17 if (!$commit) {
18 return array();
21 $author_phid = $commit->getAuthorPHID();
22 if (!$author_phid) {
23 return array();
26 return array($author_phid);
29 public function renderPropertyViewValue(array $handles) {
30 return $this->renderHandleList($handles);