1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 20:22:46 +01:00
phorge-phorge/src/applications/diffusion/herald/DiffusionPreCommitContentHeraldField.php

22 lines
425 B
PHP
Raw Normal View History

<?php
abstract class DiffusionPreCommitContentHeraldField extends HeraldField {
public function supportsObject($object) {
if (!($object instanceof PhabricatorRepositoryPushLog)) {
return false;
}
if ($this->getAdapter()->isPreCommitRefAdapter()) {
return false;
}
return true;
}
public function getFieldGroupKey() {
return DiffusionCommitHeraldFieldGroup::FIELDGROUPKEY;
}
}