Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitRefPusherHeraldField.php
blob59796de602b68d356e4494062ab9a18207c5d972
1 <?php
3 final class DiffusionPreCommitRefPusherHeraldField
4 extends DiffusionPreCommitRefHeraldField {
6 const FIELDCONST = 'diffusion.pre.ref.pusher';
8 public function getHeraldFieldName() {
9 return pht('Pusher');
12 public function getHeraldFieldValue($object) {
13 return $this->getAdapter()->getHookEngine()->getViewer()->getPHID();
16 protected function getHeraldFieldStandardType() {
17 return HeraldField::STANDARD_PHID;
20 protected function getDatasource() {
21 return new PhabricatorPeopleDatasource();