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