Page MenuHomec4science

DiffusionCommitRevisionReviewersHeraldField.php
No OneTemporary

File Metadata

Created
Tue, Nov 26, 12:40

DiffusionCommitRevisionReviewersHeraldField.php

<?php
final class DiffusionCommitRevisionReviewersHeraldField
extends DiffusionCommitHeraldField {
const FIELDCONST = 'diffusion.commit.revision.reviewers';
public function getHeraldFieldName() {
return pht('Differential reviewers');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->loadDifferentialRevision();
if (!$revision) {
return array();
}
return $revision->getReviewerPHIDs();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_LIST;
}
protected function getDatasource() {
return new PhabricatorProjectOrUserDatasource();
}
}

Event Timeline