Correct a parameter order swap in "diffusion.historyquery" for Mercurial
[phabricator.git] / src / applications / herald / editor / HeraldWebhookEditor.php
blob1f138e5028e4c2df095c7fe844a33e383cc8ce56
1 <?php
3 final class HeraldWebhookEditor
4 extends PhabricatorApplicationTransactionEditor {
6 public function getEditorApplicationClass() {
7 return 'PhabricatorHeraldApplication';
10 public function getEditorObjectsDescription() {
11 return pht('Webhooks');
14 public function getCreateObjectTitle($author, $object) {
15 return pht('%s created this webhook.', $author);
18 public function getCreateObjectTitleForFeed($author, $object) {
19 return pht('%s created %s.', $author, $object);
22 public function getTransactionTypes() {
23 $types = parent::getTransactionTypes();
25 $types[] = PhabricatorTransactions::TYPE_VIEW_POLICY;
26 $types[] = PhabricatorTransactions::TYPE_EDIT_POLICY;
28 return $types;