Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitContentRevisionSubscribersHeraldField.php
blobb7227937569636ce5764baa1cd44003f11da8b55
1 <?php
3 final class DiffusionPreCommitContentRevisionSubscribersHeraldField
4 extends DiffusionPreCommitContentHeraldField {
6 const FIELDCONST = 'diffusion.pre.content.revision.subscribers';
8 public function getHeraldFieldName() {
9 return pht('Differential subscribers');
12 public function getFieldGroupKey() {
13 return HeraldRelatedFieldGroup::FIELDGROUPKEY;
16 public function getHeraldFieldValue($object) {
17 $revision = $this->getAdapter()->getRevision();
19 if (!$revision) {
20 return array();
23 $phid = $revision->getPHID();
24 return PhabricatorSubscribersQuery::loadSubscribersForPHID($phid);
27 protected function getHeraldFieldStandardType() {
28 return self::STANDARD_PHID_LIST;
31 protected function getDatasource() {
32 return new PhabricatorProjectOrUserDatasource();