Page MenuHomec4science

HeraldWebhookEditor.php
No OneTemporary

File Metadata

Created
Wed, Jan 8, 08:23

HeraldWebhookEditor.php

<?php
final class HeraldWebhookEditor
extends PhabricatorApplicationTransactionEditor {
public function getEditorApplicationClass() {
return 'PhabricatorHeraldApplication';
}
public function getEditorObjectsDescription() {
return pht('Webhooks');
}
public function getCreateObjectTitle($author, $object) {
return pht('%s created this webhook.', $author);
}
public function getCreateObjectTitleForFeed($author, $object) {
return pht('%s created %s.', $author, $object);
}
public function getTransactionTypes() {
$types = parent::getTransactionTypes();
$types[] = PhabricatorTransactions::TYPE_VIEW_POLICY;
$types[] = PhabricatorTransactions::TYPE_EDIT_POLICY;
return $types;
}
}

Event Timeline