Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / diffusion / herald / DiffusionCommitAutocloseHeraldField.php
blob787446ee6a13d71481e753903f5d8444ccb3e225
1 <?php
3 final class DiffusionCommitAutocloseHeraldField
4 extends DiffusionCommitHeraldField {
6 const FIELDCONST = 'diffusion.commit.autoclose';
8 public function getFieldGroupKey() {
9 return HeraldDeprecatedFieldGroup::FIELDGROUPKEY;
12 public function getHeraldFieldName() {
13 // Herald no longer triggers until a commit is reachable from a permanent
14 // ref, so this condition is always true by definition.
15 return pht('Commit Autocloses (Deprecated)');
18 public function getHeraldFieldValue($object) {
19 return true;
22 public function getHeraldFieldConditions() {
23 return array(
24 HeraldAdapter::CONDITION_UNCONDITIONALLY,
28 public function getHeraldFieldValueType($condition) {
29 return new HeraldEmptyFieldValue();