Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitContentPusherProjectsHeraldField.php
blobeef82124cfef5be6772836eb200b79027f1bfe43
1 <?php
3 final class DiffusionPreCommitContentPusherProjectsHeraldField
4 extends DiffusionPreCommitContentHeraldField {
6 const FIELDCONST = 'diffusion.pre.content.pusher.projects';
8 public function getHeraldFieldName() {
9 return pht("Pusher's projects");
12 public function getHeraldFieldValue($object) {
13 return $this->getAdapter()
14 ->getHookEngine()
15 ->loadViewerProjectPHIDsForHerald();
18 protected function getHeraldFieldStandardType() {
19 return HeraldField::STANDARD_PHID_LIST;
22 protected function getDatasource() {
23 return new PhabricatorProjectDatasource();