Page MenuHomec4science

HeraldSpaceField.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 07:52

HeraldSpaceField.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();
}
}

Event Timeline