Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / herald / field / HeraldNewObjectField.php
blob4076bd717cc647c881ae55e812884376930a92b4
1 <?php
3 final class HeraldNewObjectField extends HeraldField {
5 const FIELDCONST = 'new-object';
7 public function getHeraldFieldName() {
8 return pht('Is newly created');
11 public function getFieldGroupKey() {
12 return HeraldEditFieldGroup::FIELDGROUPKEY;
15 public function supportsObject($object) {
16 return !$this->getAdapter()->isSingleEventAdapter();
19 public function getHeraldFieldValue($object) {
20 return $this->getAdapter()->getIsNewObject();
23 protected function getHeraldFieldStandardType() {
24 return self::STANDARD_BOOL;