Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionCommitRevisionReviewersHeraldField.php
bloba9a3f3e8ca46659d27413c3f3d27f7b46e1984d0
1 <?php
3 final class DiffusionCommitRevisionReviewersHeraldField
4 extends DiffusionCommitHeraldField {
6 const FIELDCONST = 'diffusion.commit.revision.reviewers';
8 public function getHeraldFieldName() {
9 return pht('Differential reviewers');
12 public function getFieldGroupKey() {
13 return HeraldRelatedFieldGroup::FIELDGROUPKEY;
16 public function getHeraldFieldValue($object) {
17 $revision = $this->getAdapter()->loadDifferentialRevision();
19 if (!$revision) {
20 return array();
23 return $revision->getReviewerPHIDs();
26 protected function getHeraldFieldStandardType() {
27 return self::STANDARD_PHID_LIST;
30 protected function getDatasource() {
31 return new DifferentialReviewerDatasource();