Page MenuHomec4science

DiffusionCommitAuthorHeraldField.php
No OneTemporary

File Metadata

Created
Fri, Nov 29, 22:30

DiffusionCommitAuthorHeraldField.php

<?php
final class DiffusionCommitAuthorHeraldField
extends DiffusionCommitHeraldField {
const FIELDCONST = 'diffusion.commit.author';
public function getHeraldFieldName() {
return pht('Author');
}
public function getHeraldFieldValue($object) {
return $object->getCommitData()->getCommitDetail('authorPHID');
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_NULLABLE;
}
protected function getDatasource() {
return new PhabricatorPeopleDatasource();
}
}

Event Timeline