3 final class DiffusionPreCommitContentRepositoryProjectsHeraldField
4 extends DiffusionPreCommitContentHeraldField
{
6 const FIELDCONST
= 'diffusion.pre.content.repository.projects';
8 public function getHeraldFieldName() {
9 return pht('Repository projects');
12 public function getHeraldFieldValue($object) {
13 return PhabricatorEdgeQuery
::loadDestinationPHIDs(
14 $this->getAdapter()->getHookEngine()->getRepository()->getPHID(),
15 PhabricatorProjectObjectHasProjectEdgeType
::EDGECONST
);
18 protected function getHeraldFieldStandardType() {
19 return HeraldField
::STANDARD_PHID_LIST
;
22 protected function getDatasource() {
23 return new PhabricatorProjectDatasource();