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