Generate file attachment transactions for explicit Remarkup attachments on common...
[phabricator.git] / src / applications / diffusion / herald / DiffusionPreCommitRefPusherProjectsHeraldField.php
blob937e758acfb74c075dd33cc0bcd6da1159792e53
1 <?php
3 final class DiffusionPreCommitRefPusherProjectsHeraldField
4 extends DiffusionPreCommitRefHeraldField {
6 const FIELDCONST = 'diffusion.pre.ref.pusher.projects';
8 public function getHeraldFieldName() {
9 return pht("Pusher's projects");
12 public function getHeraldFieldValue($object) {
13 return $this->getAdapter()
14 ->getHookEngine()
15 ->loadViewerProjectPHIDsForHerald();
18 protected function getHeraldFieldStandardType() {
19 return HeraldField::STANDARD_PHID_LIST;
22 protected function getDatasource() {
23 return new PhabricatorProjectDatasource();