Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/editor/PhabricatorProjectTriggerEditor.php
- This file was added.
<?php | |||||
final class PhabricatorProjectTriggerEditor | |||||
extends PhabricatorApplicationTransactionEditor { | |||||
public function getEditorApplicationClass() { | |||||
return 'PhabricatorProjectApplication'; | |||||
} | |||||
public function getEditorObjectsDescription() { | |||||
return pht('Triggers'); | |||||
} | |||||
public function getCreateObjectTitle($author, $object) { | |||||
return pht('%s created this trigger.', $author); | |||||
} | |||||
public function getCreateObjectTitleForFeed($author, $object) { | |||||
return pht('%s created %s.', $author, $object); | |||||
} | |||||
public function getTransactionTypes() { | |||||
$types = parent::getTransactionTypes(); | |||||
$types[] = PhabricatorTransactions::TYPE_EDIT_POLICY; | |||||
return $types; | |||||
} | |||||
} |