Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitContentPackageHeraldField.php
blob084d3b2d00428ec6064fee4dd62371e505e96ee0
1 <?php
3 final class DiffusionPreCommitContentPackageHeraldField
4 extends DiffusionPreCommitContentHeraldField {
6 const FIELDCONST = 'diffusion.pre.content.package';
8 public function getHeraldFieldName() {
9 return pht('Affected packages');
12 public function getFieldGroupKey() {
13 return HeraldRelatedFieldGroup::FIELDGROUPKEY;
16 public function getHeraldFieldValue($object) {
17 $packages = $this->getAdapter()->loadAffectedPackages();
18 return mpull($packages, 'getPHID');
21 protected function getHeraldFieldStandardType() {
22 return self::STANDARD_PHID_LIST;
25 protected function getDatasource() {
26 return new PhabricatorOwnersPackageDatasource();