Page MenuHomePhorge

DifferentialRevisionPackageHeraldField.php
No OneTemporary

DifferentialRevisionPackageHeraldField.php

<?php
final class DifferentialRevisionPackageHeraldField
extends DifferentialRevisionHeraldField {
const FIELDCONST = 'differential.revision.package';
public function getHeraldFieldName() {
return pht('Affected packages');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$packages = $this->getAdapter()->loadAffectedPackages();
return mpull($packages, 'getPHID');
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_LIST;
}
protected function getDatasource() {
return new PhabricatorOwnersPackageDatasource();
}
}

File Metadata

Mime Type
text/x-php
Expires
Sun, Jan 19, 20:16 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128369
Default Alt Text
DifferentialRevisionPackageHeraldField.php (684 B)

Event Timeline