Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitContentAuthorHeraldField.php
blob4fb390d474ac4cc71de3e31f271c320a45d725bb
1 <?php
3 final class DiffusionPreCommitContentAuthorHeraldField
4 extends DiffusionPreCommitContentHeraldField {
6 const FIELDCONST = 'diffusion.pre.commit.author';
8 public function getHeraldFieldName() {
9 return pht('Author');
12 public function getHeraldFieldValue($object) {
13 return $this->getAdapter()->getAuthorPHID();
16 protected function getHeraldFieldStandardType() {
17 return self::STANDARD_PHID_NULLABLE;
20 protected function getDatasource() {
21 return new PhabricatorPeopleDatasource();