Summary:
Ref T8726. Some adapters now have a large number of fields, and we lost the sort-of-human-readable implicit ordering when fields were modularized.
Instead, group and sort fields.
Test Plan: {F603066}
Reviewers: btrahan, chad
Reviewed By: chad
Subscribers: epriestley
Maniphest Tasks: T8726
Differential Revision: https://secure.phabricator.com/D13619
32 lines
682 B
PHP
32 lines
682 B
PHP
<?php
|
|
|
|
final class HeraldSpaceField extends HeraldField {
|
|
|
|
const FIELDCONST = 'space';
|
|
|
|
public function getHeraldFieldName() {
|
|
return pht('Space');
|
|
}
|
|
|
|
public function getFieldGroupKey() {
|
|
return HeraldSupportFieldGroup::FIELDGROUPKEY;
|
|
}
|
|
|
|
public function supportsObject($object) {
|
|
return ($object instanceof PhabricatorSpacesInterface);
|
|
}
|
|
|
|
public function getHeraldFieldValue($object) {
|
|
return PhabricatorSpacesNamespaceQuery::getObjectSpacePHID($object);
|
|
}
|
|
|
|
protected function getHeraldFieldStandardType() {
|
|
return self::STANDARD_PHID;
|
|
}
|
|
|
|
protected function getDatasource() {
|
|
return new PhabricatorSpacesNamespaceDatasource();
|
|
}
|
|
|
|
}
|