Page MenuHomec4science

DiffusionPreCommitContentRevisionHeraldField.php
No OneTemporary

File Metadata

Created
Wed, Jan 8, 03:33

DiffusionPreCommitContentRevisionHeraldField.php

<?php
final class DiffusionPreCommitContentRevisionHeraldField
extends DiffusionPreCommitContentHeraldField {
const FIELDCONST = 'diffusion.pre.content.revision';
public function getHeraldFieldName() {
return pht('Differential revision');
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->getRevision();
if (!$revision) {
return null;
}
return $revision->getPHID();
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_BOOL;
}
}

Event Timeline